public class Context extends Mention
Modifier and Type | Field and Description |
---|---|
protected int |
headTokenIndex
The token index in of the head word of this mention.
|
protected String |
headTokenTag |
protected String |
headTokenText |
protected Set<String> |
synsets |
protected Object[] |
tokens |
Constructor and Description |
---|
Context(Mention mention,
HeadFinder headFinder) |
Context(Object[] tokens,
String headToken,
String headTag,
String neType) |
Context(Span span,
Span headSpan,
int entityId,
Parse parse,
String extentType,
String nameType,
HeadFinder headFinder) |
Modifier and Type | Method and Description |
---|---|
static Context[] |
constructContexts(Mention[] mentions,
HeadFinder headFinder) |
int |
getHeadTokenIndex()
Returns the token index into the mention for the head word.
|
String |
getHeadTokenTag() |
String |
getHeadTokenText() |
Set<String> |
getSynsets() |
Object[] |
getTokens() |
static Context |
parseContext(String word) |
String |
toString() |
compareTo, getHeadSpan, getId, getNameType, getParse, getSpan, setId, setNameType, setParse
protected String headTokenText
protected String headTokenTag
protected Object[] tokens
protected int headTokenIndex
public Context(Span span, Span headSpan, int entityId, Parse parse, String extentType, String nameType, HeadFinder headFinder)
public Context(Mention mention, HeadFinder headFinder)
public static Context[] constructContexts(Mention[] mentions, HeadFinder headFinder)
public Object[] getTokens()
public String getHeadTokenText()
public String getHeadTokenTag()
public int getHeadTokenIndex()
Copyright © 2017 The Apache Software Foundation. All rights reserved.