public class WordHelpers extends Object
Constructor and Description |
---|
WordHelpers() |
Modifier and Type | Method and Description |
---|---|
static List<String> |
getHypernyms(TextAnnotation ta,
int tokenId,
WordNetManager wnManager) |
static List<String> |
getHypernymsMostFrequentSense(TextAnnotation ta,
int tokenId,
WordNetManager wnManager) |
static String |
getLemma(TextAnnotation ta,
int tokenId) |
static String |
getPOS(TextAnnotation ta,
int tokenId) |
static List<String> |
getSynset(TextAnnotation ta,
int tokenId,
WordNetManager wnManager) |
static List<String> |
getSynsetMostFrequentSense(TextAnnotation ta,
int tokenId,
WordNetManager wnManager) |
static String |
getWord(TextAnnotation ta,
int tokenId) |
static boolean |
isCapitalized(TextAnnotation ta,
int tokenId) |
public static String getWord(TextAnnotation ta, int tokenId)
public static String getPOS(TextAnnotation ta, int tokenId)
public static String getLemma(TextAnnotation ta, int tokenId)
public static boolean isCapitalized(TextAnnotation ta, int tokenId)
public static List<String> getSynset(TextAnnotation ta, int tokenId, WordNetManager wnManager) throws net.didion.jwnl.JWNLException
net.didion.jwnl.JWNLException
public static List<String> getSynsetMostFrequentSense(TextAnnotation ta, int tokenId, WordNetManager wnManager) throws net.didion.jwnl.JWNLException
net.didion.jwnl.JWNLException
public static List<String> getHypernyms(TextAnnotation ta, int tokenId, WordNetManager wnManager) throws net.didion.jwnl.JWNLException
net.didion.jwnl.JWNLException
public static List<String> getHypernymsMostFrequentSense(TextAnnotation ta, int tokenId, WordNetManager wnManager) throws net.didion.jwnl.JWNLException
net.didion.jwnl.JWNLException
Copyright © 2017. All rights reserved.