super(mention);
init(headFinder);
}
private void init(HeadFinder headFinder) {
Parse head = headFinder.getLastHead(parse);
List<Parse> tokenList = head.getTokens();
headTokenIndex = headFinder.getHeadIndex(head);
Parse headToken = headFinder.getHeadToken(head);
tokens = tokenList.toArray(new Parse[tokenList.size()]);
this.headTokenTag = headToken.getSyntacticType();
this.headTokenText = headToken.toString();
if (headTokenTag.startsWith("NN") && !headTokenTag.startsWith("NNP")) {
this.synsets = getSynsetSet(this);
}
else {
this.synsets = Collections.emptySet();