Modifier and Type | Class and Description |
---|---|
static class |
WordNet.LemmaScorePair |
Modifier and Type | Field and Description |
---|---|
net.didion.jwnl.dictionary.Dictionary |
dict |
Constructor and Description |
---|
WordNet() |
WordNet(InputStream propertiesStream) |
WordNet(String configPath) |
Modifier and Type | Method and Description |
---|---|
List<String> |
getAllSynonyms(net.didion.jwnl.data.POS pos,
String s) |
List<String> |
getAttributes(String s) |
List<String> |
getBestSynonyms(net.didion.jwnl.data.POS pos,
String s) |
List<String> |
getHypernyms(net.didion.jwnl.data.POS pos,
String word)
Returns a list of words being lemmas of a most frequent synset for the given word or one of its hypernyms.
|
List<String> |
getHyponyms(net.didion.jwnl.data.POS pos,
String s) |
void |
getHyponymsRecursive(List<String> lemmas,
net.didion.jwnl.data.Synset sense,
int depthToGo) |
List<WordNet.LemmaScorePair> |
getHyponymsScored(net.didion.jwnl.data.POS pos,
String s) |
void |
getHyponymsScoredRecursive(List<WordNet.LemmaScorePair> lemmas,
net.didion.jwnl.data.Synset sense,
int depthToGo,
double score) |
List<String> |
getRelatedNouns(String s)
Funktion returns a List of Hypo and Hypernyms of a given string
|
List<String> |
getSisterTerms(net.didion.jwnl.data.POS pos,
String s) |
List<String> |
getTopSynonyms(net.didion.jwnl.data.POS pos,
String s,
int n)
Returns the lemmas for the top
n synsets of the given POS for the string s . |
List<String> |
getWordsForFirstSynset(net.didion.jwnl.data.POS pos,
String word)
Returns a list of lemmas for the most frequent synset of the given word.
|
static void |
main(String[] args) |
public net.didion.jwnl.dictionary.Dictionary dict
public WordNet()
public WordNet(InputStream propertiesStream)
public List<String> getBestSynonyms(net.didion.jwnl.data.POS pos, String s)
public List<String> getTopSynonyms(net.didion.jwnl.data.POS pos, String s, int n)
n
synsets of the given POS for the string s
.pos
- the part of speech to retrieve synonyms fors
- the string to retrieve synonyms forn
- the number of synonyms to retrievepublic List<String> getAllSynonyms(net.didion.jwnl.data.POS pos, String s)
public List<String> getSisterTerms(net.didion.jwnl.data.POS pos, String s)
public List<String> getAttributes(String s)
public List<String> getWordsForFirstSynset(net.didion.jwnl.data.POS pos, String word)
word
- word to get synonyms forpos
- POS of the word to look uppublic List<String> getHypernyms(net.didion.jwnl.data.POS pos, String word)
public List<String> getHyponyms(net.didion.jwnl.data.POS pos, String s)
public void getHyponymsRecursive(List<String> lemmas, net.didion.jwnl.data.Synset sense, int depthToGo)
public List<WordNet.LemmaScorePair> getHyponymsScored(net.didion.jwnl.data.POS pos, String s)
public void getHyponymsScoredRecursive(List<WordNet.LemmaScorePair> lemmas, net.didion.jwnl.data.Synset sense, int depthToGo, double score)
public List<String> getRelatedNouns(String s)
s
- Word for which you want to get Hypo and Hypersymsnet.didion.jwnl.JWNLException
DL-Learner is licenced under the terms of the GNU General Public License.
Copyright © 2007-2019 Jens Lehmann