public class BabelNetUtils extends Object
| Constructor and Description |
|---|
BabelNetUtils() |
| Modifier and Type | Method and Description |
|---|---|
static int |
compareByPOS(it.uniroma1.lcl.jlt.util.POS pos1,
it.uniroma1.lcl.jlt.util.POS pos2)
Compares POSes
|
static com.google.common.collect.Multimap<it.uniroma1.lcl.jlt.util.Language,it.uniroma1.lcl.jlt.util.ScoredItem<String>> |
getTranslations(it.uniroma1.lcl.jlt.util.Language language,
String word)
Gets translations of an input word.
|
static com.google.common.collect.Multimap<it.uniroma1.lcl.jlt.util.Language,it.uniroma1.lcl.jlt.util.ScoredItem<String>> |
getTranslations(it.uniroma1.lcl.jlt.util.Language searchLang,
String word,
List<it.uniroma1.lcl.jlt.util.Language> targetLangs)
Gets translations of an input word.
|
static edu.mit.jwi.item.POS |
toWordNetPOS(it.uniroma1.lcl.jlt.util.UniversalPOS pos)
Returns the JWI WordNet part of speech where available
|
public static com.google.common.collect.Multimap<it.uniroma1.lcl.jlt.util.Language,it.uniroma1.lcl.jlt.util.ScoredItem<String>> getTranslations(it.uniroma1.lcl.jlt.util.Language language, String word)
language - the language of the input word.word - the word whose senses are to be retrieved.public static com.google.common.collect.Multimap<it.uniroma1.lcl.jlt.util.Language,it.uniroma1.lcl.jlt.util.ScoredItem<String>> getTranslations(it.uniroma1.lcl.jlt.util.Language searchLang, String word, List<it.uniroma1.lcl.jlt.util.Language> targetLangs)
searchLang - the language of the input word.word - the word whose senses are to be retrieved.targetLangs - the languages in which the data are to be retrieved.public static edu.mit.jwi.item.POS toWordNetPOS(it.uniroma1.lcl.jlt.util.UniversalPOS pos)
pos - the universal POS to convertpublic static int compareByPOS(it.uniroma1.lcl.jlt.util.POS pos1,
it.uniroma1.lcl.jlt.util.POS pos2)
pos1 - the first part of speechpos2 - the second part of speechCopyright © 2016–2022. All rights reserved.