LATEST VERSION 1.0 (20.01.2014)

Description

WordNet® is a large lexical database of English. Nouns, verbs, adjectives and adverbs are grouped into sets of cognitive synonyms (synsets), each expressing a distinct concept. Synsets are interlinked by means of conceptual-semantic and lexical relations. The resulting network of meaningfully related words and concepts can be navigated with the browser (LINK).

WordNet is also freely and publicly available for download LINK.

WordNet's structure makes it a useful tool for computational linguistics and natural language processing. WordNet superficially resembles a thesaurus, in that it groups words together based on their meanings. However, there are some important distinctions. First, WordNet interlinks not just word forms—strings of letters—but specific senses of words. As a result, words that are found in close proximity to one another in the network are semantically disambiguated. Second, WordNet labels the semantic relations among words, whereas the groupings of words in a thesaurus does not follow any explicit pattern other than meaning similarity.

Original project site LINK
UWordNet is a wrapper for WordNet functionalities, enabling it to be used with URBI.

How to run

Copy "dict" folder (included in the package) to your URBI path.
 

Module functions

UWordNet.GetResults(string word, int depth) - perform search,
word - word to be sought out,
depth - positive integer meaning degree of synset generality, where 0 means that synset comprises the word.
Each use of this function rewrites every search option field.
UWordNet.searchedWord - word, for which search is performed,
UWordNet.basicForms - vector of basic forms of the word,
 
for adjectives:
UWordNet.synsa - similarity,
UWordNet.antsa - antonyms,
UWordNet.perta - pertainyms,
UWordNet.attra - attributes,
UWordNet.domna - domain,
UWordNet.domta - domain terms,
UWordNet.famla - familiarity,
UWordNet.grepa - grep,
 
for nouns:
UWordNet.synsn - synonyms/hypernyms (ordered by estimated frequency),
UWordNet.antsn - antonyms,
UWordNet.hypen - synonyms/hypernyms (ordered by estimated frequency),
UWordNet.hypon - hyponyms,
UWordNet.treen - hyponyms,
UWordNet.holon - holonyms,
UWordNet.sprtn - part holonyms,
UWordNet.smemn - member holonyms,
UWordNet.ssubn - substance holonyms,
UWordNet.hholn - holonyms,
UWordNet.meron - meronyms,
UWordNet.subsn - substance meronyms,
UWordNet.partn - part meronyms,
UWordNet.membn - member meronyms,
UWordNet.hmern - meronyms,
UWordNet.nomnn - derived forms,
UWordNet.derin - derived forms,
UWordNet.domnn - domain,
UWordNet.domtn - domain terms,
UWordNet.attrn - attributes,
UWordNet.famln - familiarity,
UWordNet.grepn - grep,
 
for verbs:
UWordNet.synsv - synonyms/hypernyms (ordered by estimated frequency),
UWordNet.simsv - synonyms (grouped by similarity of meaning),
UWordNet.antsv - antonyms,
UWordNet.hypev - synonyms/hypernyms (ordered by estimated frequency),
UWordNet.hypov - troponyms (hyponyms),
UWordNet.treev - troponyms (hyponyms),
UWordNet.tropv - troponyms (hyponyms),
UWordNet.entav - entailment,
UWordNet.causv - \'cause to\',
UWordNet.nomnv - derived forms,
UWordNet.deriv - derived forms,
UWordNet.domnv - domain,
UWordNet.domtv - domain terms,
UWordNet.framv - sample sentences,
UWordNet.famlv - familiarity,
UWordNet.grepv - grep,
 
for adverbs:
UWordNet.synsr - synonyms,
UWordNet.antsr - antonyms,
UWordNet.pertr - pertainyms,
UWordNet.domnr - domain,
UWordNet.domtr - domain terms,
UWordNet.famlr - familiarity
UWordNet.grepr - grep.
 

Urbiscript example

loadModule("UWordNet.dll");
var wordnet = UWordNet.new();
wordnet.GetResults("greater",1);
wordnet.synsa;
//Output:
[]
 
//The reason that there is no output is that the entered word is a comparative form, we need basic form:
 
 wordnet.basicForms;
 
// Output:
 
["great"]
 
wordnet.GetResults(wordnet.basicForms[0],1);
wordnet.synsa;
 
// Output:
 
[["large", "big"]]
 
// We get vector of synsets with synonyms(only adjectives).
// Now if we want to search on a more general level:
 
wordnet.GetResults("great",2);
wordnet.synsa;
 
//Output would be:
[["ample", "sizable", "sizeable"], ["astronomic", "astronomical", "galactic"], ["bear-sized"], ["bigger", "larger"], ["biggish", "largish"], ["blown-up", "enlarged"], ["bouffant", "puffy"], ["broad", "spacious", "wide"], ["bulky"], ["capacious"], ["colossal", "prodigious", "stupendous"], ["deep"], ["double"], ["enormous", "tremendous"], ["cosmic"], ["elephantine", "gargantuan", "giant", "jumbo"], ["epic", "heroic", "larger-than-life"], ["extensive", "extended"], ["gigantic", "mammoth"], ["great"], ["grand"], ["huge", "immense", "vast", "Brobdingnagian"], ["hulking", "hulky"], ["humongous", "banging", "thumping", "whopping", "walloping"], ["king-size", "king-sized"], ["large-mouthed"], ["large-scale"], ["large-scale"], ["life-size", "lifesize", "life-sized", "full-size"], ["macroscopic", "macroscopical"], ["macro"], ["man-sized"], ["massive", "monolithic", "monumental"], ["massive"], ["medium-large"], ["monstrous"], ["mountainous"], ["outsize", "outsized", "oversize", "oversized"], ["overlarge", "too_large"], ["plumping"], ["queen-size", "queen-sized"], ["rangy"], ["super"], ["titanic"], ["volumed"], ["voluminous"], ["whacking"], ["wide-ranging"]]

Download

LINK

 

 

EMYS and FLASH are Open Source and distributed according to the GPL v2.0 © Rev. 0.8.0, 27.04.2016

FLASH Documentation