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 WordnetUtils
getInstance(IParameterStore parameterStore)
String
getLexicalFileName(edu.stanford.nlp.ling.CoreLabel token, List<edu.stanford.nlp.ling.CoreLabel> contextWords)
String
getTokenGloss(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)
boolean
isIndexWord(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)
-
-