public class WordNetUtils extends Object
| Modifier and Type | Field and Description |
|---|---|
private net.sf.extjwnl.dictionary.Dictionary |
dict |
private static org.slf4j.Logger |
LOGGER |
| Constructor and Description |
|---|
WordNetUtils() |
| Modifier and Type | Method and Description |
|---|---|
List<String> |
getAllSynsets(String word)
Gets all synsets for the given word as VERB and NOUN.
|
String |
getDerivedAdjective(String noun)
Returns the derived adjective with the same word form for the most common
sense of the given noun if exists.
|
static void |
main(String[] args) |
private static final org.slf4j.Logger LOGGER
private net.sf.extjwnl.dictionary.Dictionary dict
public String getDerivedAdjective(String noun)
noun - the nounpublic List<String> getAllSynsets(String word)
word - the wordCopyright © 2020. All rights reserved.