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
3
votes
1 answer

How can controlled vocabularies or taxonomies be used to define XML element names or attribute names?

I am currently writing an XML file which models some experimental issue. Unfortunately, many of the associated words come with various synonyms. What I would like to do is to have a controlled vocabulary or taxonomy which either allows any of the…
jallmer
  • 589
  • 3
  • 17
3
votes
1 answer

Save TFIDF vocab and transformation and use on new dataset

I am trying to save all the vocab words and the tfidf vectorizer from the train/test set so that I can use it on a new set of text at a later time. I got the vocab and idf dictionary using this code: cvec_tfidf = TfidfVectorizer(analyzer="word",…
Kim S.
  • 47
  • 5
3
votes
1 answer

Why do URIs of specifications/vocabularies contain date information?

Most example namespace URIs seem to contain some combination of year/month/day in their path: rdf: http://www.w3.org/1999/02/22-rdf-syntax-ns# rdfs: http://www.w3.org/2000/01/rdf-schema#> It's not obvious (to me) why it makes sense to include part…
zwelz
  • 435
  • 3
  • 11
3
votes
1 answer

Dictionary-like matching on string in R

I have a dataframe in which a string variable is an informal list of elements, that can be split on a symbol. I would like to make operaion on these elements on the basis of another dataset. e.g. task: Calculate the sum of the elements df_1 <-…
MCS
  • 1,071
  • 9
  • 23
3
votes
1 answer

Adding custom properties to an existing type in JSON-LD

I'm investigating the use of JSON-LD and Hydra for use as an API payload. It seems to be very promising, but I'm struggling with one thing - how to extend pre-defined types. For example, I have users. It seems reasonable to model them as "@type":…
Graham
  • 4,095
  • 4
  • 29
  • 37
3
votes
1 answer

What does it mean to 'trace' something in Java?

My Java textbook is exploring for loops and talks about 'tracing' for loops, but does not give a clear definition. Does it simply mean breaking down the code?
Eli
  • 75
  • 8
3
votes
2 answers

Can I prune a parser's vocabulary in spaCy?

The following code uses spaCy word vectors to find the 20 most similar words to a given word by first computing cosine similarity for all words in the vocabulary (more than a million), then sorting this list of the most similar words. parser =…
jabrew
  • 131
  • 2
3
votes
0 answers

Web Speech API: improve accuracy by a set of vocabulary

Can I improve the web speech api by setting some vocabulary for a specific application ?
Xsmael
  • 3,624
  • 7
  • 44
  • 60
3
votes
1 answer

How to store vocabulary in an array more effectively?

I've got a vocabulary, a, abandon, ... , z. For some reason, I will use array rather than Trie to store them. Thus a simple method can be: wordA\0wordB\0wordC\0...word\0 But there are some more economic methods for memory I think. Since like is a…
LTzycLT
  • 489
  • 1
  • 5
  • 13
3
votes
1 answer

Categories of tags

I'm starting a pro bono project that is the web interface to the world's largest collection of lute music and it's a challenging collection from several points of view. The pieces are largely from 1400 to 1600, but they range from the mid-1200's to…
Peter Rowell
  • 17,605
  • 2
  • 49
  • 65
3
votes
2 answers

NLP: retrieve vocabulary from text

I have some texts in different languages and, potentially, with some typo or other mistake, and I want to retrieve their own vocabulary. I'm not experienced with NLP in general, so maybe I use some word improperly. With vocabulary I mean a…
Giacomo
  • 111
  • 6
3
votes
1 answer

How to to use multiple Vocabularies with HTML5 Microdata (different vocab than schema.org)

Say I have this valid microdata enhanced HTML snippet:
Example
(I have tested this with google's Structured Data Testing Tool.) And now I want to add…
vanthome
  • 4,816
  • 37
  • 44
3
votes
1 answer

Managing Plone vocabularies through the web

I am currently working on a Plone project with several custom content types. These content types have several fields that in turn fetch their values from vocabularies. Currently, I've just hard coded my values in a vocabularies.py file as such: from…
Frankline
  • 40,277
  • 8
  • 44
  • 75
2
votes
5 answers

Can I have a class shared for all my web applications?

I'm about, with WebForms, to making a vocabulary (for N languages) that I'll share for my all web applications. Like MyLanguages.cs. Then I'll create static methods to get my words. But I won't to have it for all my applications, just one for ALL…
markzzz
  • 47,390
  • 120
  • 299
  • 507
2
votes
1 answer

What is a "copy c-or" in C++?

I am came across a question Which is better i++ or ++i. Somebody said ++i as it does not require copy c-or . I just want to know what is a copy c-or and is it a disadvantage to use such a thing ?
Invictus
  • 4,028
  • 10
  • 50
  • 80
1 2
3
12 13