Package io.outofprintmagazine.nlp.utils
Class WordnetUtils
- java.lang.Object
-
- io.outofprintmagazine.nlp.utils.WordnetUtils
-
public class WordnetUtils extends Object
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static WordnetUtilsgetInstance(IParameterStore parameterStore)StringgetLexicalFileName(edu.stanford.nlp.ling.CoreLabel token, List<edu.stanford.nlp.ling.CoreLabel> contextWords)StringgetTokenGloss(edu.stanford.nlp.ling.CoreLabel token, List<edu.stanford.nlp.ling.CoreLabel> contextWords)List<String>getVerbnetSenses(edu.stanford.nlp.ling.CoreLabel token, List<edu.stanford.nlp.ling.CoreLabel> contextWords)booleanisIndexWord(edu.stanford.nlp.ling.CoreLabel token)Map<String,BigDecimal>scoreTokenHypernym(edu.stanford.nlp.ling.CoreLabel token, List<edu.stanford.nlp.ling.CoreLabel> contextWords, Map<String,BigDecimal> tokensToMatch)
-
-
-
Method Detail
-
getInstance
public static WordnetUtils getInstance(IParameterStore parameterStore) throws IOException
- Throws:
IOException
-
getVerbnetSenses
public List<String> getVerbnetSenses(edu.stanford.nlp.ling.CoreLabel token, List<edu.stanford.nlp.ling.CoreLabel> contextWords) throws IOException, InstantiationException, IllegalAccessException, ClassNotFoundException
-
getLexicalFileName
public String getLexicalFileName(edu.stanford.nlp.ling.CoreLabel token, List<edu.stanford.nlp.ling.CoreLabel> contextWords)
-
isIndexWord
public boolean isIndexWord(edu.stanford.nlp.ling.CoreLabel token)
-
scoreTokenHypernym
public Map<String,BigDecimal> scoreTokenHypernym(edu.stanford.nlp.ling.CoreLabel token, List<edu.stanford.nlp.ling.CoreLabel> contextWords, Map<String,BigDecimal> tokensToMatch)
-
-