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

Build vocab using spacy

I'm using spacy tokenizer to tokenize my data, and then build vocab. This is my code: import spacy nlp = spacy.load("en_core_web_sm") def build_vocab(docs, max_vocab=10000, min_freq=3): stoi = {'':0, '':1} itos = {0:'', 1:''} …
testaja
  • 43
  • 4
2
votes
1 answer

Generate a string of N random English words with NLTK/Python

Is there a way to generate a string of N random English words using NLTK/Python? I am aware of NLTK's ability to generate sentences based on input text and a grammar, but I don't need to generate sentences based on any sort of grammar - I just need…
J. Taylor
  • 4,567
  • 3
  • 35
  • 55
2
votes
0 answers

How do you pass vocabulary text files to a model and train it on google cloud platforms machine learning engine

I am trying to make a DNNCLassifier that takes categorical inputs using tensor flow to train a model on the Google Cloud Platform (GCP). I have a few categorical feature columns where I use a vocabulary.txt file. For…
2
votes
1 answer

Code vocabulary statistics

A couple of months ago Harvard University and Google researchers did a study where they mined the complete text of 4 percent of the world’s books and came out with interesting statistics about the English vocabulary. Has anyone done something…
Emanuil Rusev
  • 34,563
  • 55
  • 137
  • 201
2
votes
1 answer

Adding vocabulary dynamically

I am new to Drupal and working with Drupal 8, I have not work in Drupal 7 or 6 so have less knowledge of it. I am working on some dynamic fields of Drupal content type. I have one content type attached with a vocabulary ( select list of terms ). I…
Kiran B
  • 23
  • 4
2
votes
2 answers

Guidelines for RDF terms for building RDF triples

I want to write down the following sentences in RDF Triple Notation: The hotel is located at Flowerstree 12, Vienna, Austria urn:Hotel locatedAt urn:locationOfHotel urn:locationOfHotel: hasNumber …
Mchoeti
  • 536
  • 1
  • 8
  • 24
2
votes
0 answers

How does the Stanford Parser handle unseen words?

I'm curious to know more about the heuristics/techniques used by the Stanford parser for handling unseen words. For example, given input: aa aaa aaaa, "bb bbb bbbb"?, the parser produces: (ROOT (SQ (VP (VB aa) (NP (NP (NN aaa) (NN aaaa)) (, ,) ()…
jld
  • 63
  • 6
2
votes
4 answers

What do you call a method or library which is old and shouldn't be used anymore?

There has to be a name for this. I'm thinking degraded or unused (old isn't descriptive enough). Has anyone come up with something descriptive to call this?
Daisetsu
  • 4,846
  • 11
  • 50
  • 70
2
votes
3 answers

What would be a good/correct term to designate a group of microservices?

I am opening this topic looking for an advice to solve/help in the following problem: I am currently working with other people on a project with a microservices architecture, using cloud computing. There are 6 different microservices, and there are…
2
votes
4 answers

Compile-time, load-time, run-time: phases of... what?

Sorry for the confusing title :P I'm sure I should know this but I always have trouble with terminology. I can't figure out the right word to put in the blank space in the following sentence: Different weaving strategies are usually classified…
Alix
  • 927
  • 7
  • 21
2
votes
1 answer

What is a LAC record?

Could please explained what is a "lac record" in the context of Java & Databases. I've seen references for "lac record" with a table having 12 lacs records enter link description here I can't figure out the meaning of "lac record"... Thanks
2
votes
1 answer

using controlled vocabulary in

In , controlled vocabularies may be initialized as follows:
Jay Gray
  • 1,706
  • 2
  • 20
  • 36
2
votes
1 answer

How to delete terms within Drupal taxonomy module?

If terms (admin OR user created) are duplicates, I don't see a way to delete them from within the Drupal browser interface. This becomes a problem during, say, adding products to an ecommerce site that breaks their products up into categories. The…
user234985
2
votes
1 answer

How could RDF vocabularies specify property categories (from "URLs in Data Primer")?

The W3C TAG published the Working Draft URLs in Data Primer last month. It specifies a solution for the httpRange-14 issue. Now vocabularies should specify categories for their properties, i.e. if a property applies to the document or to an entity…
unor
  • 92,415
  • 26
  • 211
  • 360
2
votes
1 answer

Find a suitable vocabulary database to build a C structure

Let's begin with the question final purpose: my aim is to build a word-based neural network which should take a basic sentence and select for each individual word the meaning it is supposed to yield in the sentence itself. It is then going to learn…
gianluca
  • 337
  • 1
  • 3
  • 15