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

RDF vocabulary extendability

I am new to RDF and I am unsure if I understand everything. As far as I know, a vocabulary like FOAF, DC, etc. provide predicates as well as objects. So what is, if I want to create a vocabulary for cars were I provide objects representing brands so…
user3579222
  • 1,103
  • 11
  • 28
1
vote
1 answer

PHP how to tell vocabulary type in context

What I want to be able to do is tell if a word in a sentence is a noun, adverb, adjective, etc.. I looked into FreeLing, and a few other open source projects that I could find that are able to do this, just wondering if there is one that works with…
Scott Tyler
  • 67
  • 2
  • 6
1
vote
0 answers

How to build a dictionary for LDA

I've been working on Latent Dirchlet Allocation for 2 weeks and I'm trying to build a dictionary and a train file to try it. I've already tried it with Matlab and gcc by using the Blei's train file, but I have no idea about how to create a…
1
vote
1 answer

Some Jena vocabs use 'ResourceFactory.createProperty()' while others use 'ModelFactory.createDefaultModel().createProperty()'

I'm new to Jena, but when I look at the vocabularies defined with the Jena source (i.e. in directory: jena-2.10.0-Source\jena-core\src\main\java\com\hp\hpl\jena\vocabulary) I see some of the vocabularies create properties and resources using…
1
vote
1 answer

RDF: namespace to identify programming languages (JS, C#,...)

I want to store serialized code and in what programming language this code is written as RDF. For example something like that: @prefix : . @prefix dc: . :algorithm dc:format…
philsch
  • 1,004
  • 11
  • 19
1
vote
1 answer

Create own properties to using Schema.org with RDFa Lite?

So Im putting semantics on my page using RDFa Lite and the vocabulary Schema.org, but I have ran into an problem. Im putting it on a Person that is a soocer player. I got informations like player number, player position and so on? How do I define…
Tommy
  • 177
  • 2
  • 10
1
vote
0 answers

localized vocabulary-names dont show up in views drupal

i got a view in drupal that shows terms and their corresponding vocabulary-name to group those terms. Problem: When i switch the language just the terms show their translated versions, the vocabulary-names stay in the original language. Any idea…
Fab Ulous
  • 79
  • 8
1
vote
1 answer

appropriate term for a predicate that has state

A predicate (an object that is a boolean-valued function which tests its input for a condition) is generally assumed to be stateless. What's the most appropriate name for an object which has a testing function with state? e.g. in Java, the…
Jason S
  • 184,598
  • 164
  • 608
  • 970
1
vote
3 answers

Is there a standard computer vocabulary for German? for Spanish?

I was given the task of coming up with shorter German words for the German version of our software. It got me to thinking that there should be some sort of standard vocabulary for information technology somewhere. Like there "have to be" terms…
Null Pointers etc.
  • 2,124
  • 2
  • 14
  • 20
0
votes
2 answers

ruby vocabulary library

Is there a vocabulary library that can recognize different forms as one word? Like this: Built, Builds, Building => Build Ate, Eaten, Eats, Eating => Eat Tables => Table
megas
  • 21,401
  • 12
  • 79
  • 130
0
votes
3 answers

Plone 4: Getting Vocabulary values in a loop

I am trying to fetch a Named Vocabulary and loop through its contents. Below is the code I have so far. def get_car_types(self): car_types = [] vtool = getToolByName(self, 'portal_vocabularies') cars_vocab =…
Frankline
  • 40,277
  • 8
  • 44
  • 75
0
votes
0 answers

Keep powershell vocabulary in file and update it with only new data from source if exist

I have no Idea, is it possible and how. I wrote one script that keeps around 1.5 mln. keys-values and growing day by day. Every script run, it parsing hundreds of JSON files to retrieve all valuse. I would be happy if you can offer some Idea on how…
0
votes
0 answers

Remove tokens from Hugging Face tokenizer and save

In the current implementation, what is the recommended way for removing tokens from a any Hugging Face PreTrainedTokenizer? Simply creating a new vocabulary.txt and loading it with from_pretrained is deprecated and does not scale to all tokenizers.…
0
votes
1 answer

Runtime Error in doc2vec model for a preprocessed dataset

I have a dataset from amazon reviews dataset: meta_Electronics.json.gz The below code is given by instructor: def read_product_description(fname): ''' Load all product descriptions Args: fname: dataset file path Returns: …
Alex
  • 81
  • 6
0
votes
0 answers

Vocab for LSA Topic Modelling returning letters rather than words

I am trying to topic model a list of descriptions using LSA. When I tokenize and then create a vocab from the descriptions, the vocab returns letters rather than words. my_stopwords = nltk.corpus.stopwords.words('english') word_rooter =…