public class WordNetUtils extends Object
Modifier and Type | Field and Description |
---|---|
static String |
wordNetPath |
Constructor and Description |
---|
WordNetUtils() |
Modifier and Type | Method and Description |
---|---|
static edu.mit.jwi.IDictionary |
getDictionary()
Initialize WordNet dictionary.
|
static String |
getHeadWord(String s)
A simple way to get the head word of a phrase.
|
static HashSet<String> |
getHyperHypernyms(edu.mit.jwi.IDictionary dict,
String word,
String posTag,
boolean firstSenseOnly) |
static HashSet<String> |
getHypernyms(edu.mit.jwi.IDictionary dict,
String word,
String posTag,
boolean firstSenseOnly)
Retrieve a set of hypernyms for a word.
|
static List<String> |
getStems(String word,
String posTag,
edu.mit.jwi.IDictionary iDictionary)
Get a list of possible stems.
|
static HashSet<String> |
getSynonyms(edu.mit.jwi.IDictionary iDictionary,
String word,
String posTag,
boolean firstSenseOnly)
Retrieve a set of synonyms for a word.
|
public static final String wordNetPath
public static String getHeadWord(String s)
public static edu.mit.jwi.IDictionary getDictionary() throws IOException
IOException
public static List<String> getStems(String word, String posTag, edu.mit.jwi.IDictionary iDictionary)
public static HashSet<String> getSynonyms(edu.mit.jwi.IDictionary iDictionary, String word, String posTag, boolean firstSenseOnly)
public static HashSet<String> getHypernyms(edu.mit.jwi.IDictionary dict, String word, String posTag, boolean firstSenseOnly)
Copyright © 2012-2017 The Apache Software Foundation. All Rights Reserved.