Questions tagged [vocabulary]

For questions related to dictionary-like structures in programming, mainly to Semantic Web vocabularies. Please do not use in place of the "terminology" tag.

In Semantic Web

  • In the Semantic Web field, a controlled vocabulary is a set of URIs used to identify things, relations or classes.

  • A vocabulary with well-developed subsumption (subclass-superclass) relations is often called a taxonomy.

  • A taxonomy with well-developed non-subsumption relations is often called an ontology.

See also:

190 questions
1
vote
3 answers

Could someone explain the word recursive in relation to computers/programming? I Am having a difficult time understanding its use

In my computing course, the word recursively is used quite a bit - I'm trying to have a deeper understanding of its use and was wondering if someone could enlighten me. EX: Searches HKLM recursively for the Key SAM
1
vote
5 answers

Debug Assert condition logic and language peculiarities

I am not native English speaker, so for me is a little strange the Debug.Assert method, that, for me, verifies a condition, in fact, verifies the opposite of this condition. Assert = advance, affirm, argue, attest, aver, claim, proclaim,…
serhio
  • 28,010
  • 62
  • 221
  • 374
1
vote
1 answer

In Gensim Word2vec, how to reduce the vocab size of an existing model?

In Gensims word2vec api, I trained a model where I initialized the model with max_final_vocab = 100000 and saved the model using model.save() (This gives me one .model file, one .model.trainables.syn1neg.npy and one .model.wv.vectors.npy file). I do…
hanuta98
  • 89
  • 8
1
vote
3 answers

How to read a method call

I have a mostly vocabulary-related question, concerning method calls: when you have a code such as dog.sit() Would you rather say that you "call the sit method of dog" or "call the sit method on dog?" and why? Thanks ;)
ms123
  • 581
  • 4
  • 12
1
vote
1 answer

Is Aggregation the same as Composition?

Good day, What is aggregation and what is composition? Are they the same? As I understand it, is that there are no difference. According to: [This Website] they do differ in subtle ways. However I do think that they are not on the right track...…
1
vote
2 answers

D8 How do I retrieve the value of a custom field on a vocab term for the field--entity-reference.html.twig file?

My goal is to colour code vocabulary terms based on a field_topic_colour which I've added to the vocabulary. There are other vocabularies which do not have this field. So, I need to check and see if it exists for a certain term and then fetch the…
Rillieux
  • 587
  • 9
  • 23
1
vote
0 answers

Gensim build_vocab_from_freq overflow Error

I'm trying to build a Gensim word2vec model by using an external vocabulary. I know Gensim has an internal vocabulary generator however I do not have the same control over them. My problem code is simply. import gensim from…
Salih F. Canpolat
  • 204
  • 2
  • 3
  • 14
1
vote
1 answer

What is the difference between "tabular format" and "table format"?

I used to work in another industry, but now that I work in analytics, I hear the term "tabular" or "tabular format" all the time. It's always in the context of "this needs to be in tabular format" or "we have a bunch of tabular data, blah blah blah"…
SUMguy
  • 1,505
  • 4
  • 31
  • 61
1
vote
1 answer

Background page is scrolling but not the popup Modal

There is a link in the input form to a popup window to pickup subject categories. The popup window (modal) is a long list but it is not scrolling. If I am trying to scroll then the input form is scrolling and not the popup window. The popup window…
Satya
  • 25
  • 4
1
vote
1 answer

Drupal: How do I manually print Taxonomy Images

Here is the code I used to print taxonomy images per specific vocabulary using Taxonomy Image:
canintex
  • 638
  • 1
  • 7
  • 21
1
vote
2 answers

R: Extract controlled vocabulary from character vector

Suppose text data looks like this: txt <- c("peter likes red", "mary likes green", "bob likes blue") I want to reduce those string to words from this controlled vocabulary: voc <- c("peter", "mary", "bob", "red", "green", "blue") The result should…
hyco
  • 213
  • 3
  • 11
1
vote
0 answers

Referencing logical operators

I want to store tuples {a implies c, not c,...}. How do I reference the operators? Is there a specific vocabulary I should use? edited after first comment
1
vote
2 answers

General Programming: When a set of objects are managed by another object, what do you call it?

I'm looking for help identifying this design pattern and learning the "typical" vocabulary it uses: I'm working on a project in PHP, and I've created a thin ORM layer that saves generic objects to and from the database. There are two classes that do…
Andrew
  • 42,517
  • 51
  • 181
  • 281
1
vote
3 answers

Unit Testing Vocabulary: "coverage"

I'm preparing some educational/training material with respect to Unit Testing, and want to double check some vocabulary. In an example I'm using the developer has tested a Facade for all possible inputs but hasn't tested the more granular units…
Richard JP Le Guen
  • 28,364
  • 7
  • 89
  • 119
1
vote
1 answer

Adding a self build vocabulary in scikit-learn?

In sklearn.feature_extraction.text.TfidfVectorizer, we can inject our own vocabulary using vocabulary parameter of the model. but in this case only my own selected words are used for the model. I want to use automatically detected features with my…