public static class KBPRelationExtractor.KBPInput
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
Span |
objectSpan |
KBPRelationExtractor.NERTag |
objectType |
Sentence |
sentence |
Span |
subjectSpan |
KBPRelationExtractor.NERTag |
subjectType |
Constructor and Description |
---|
KBPInput(Span subjectSpan,
Span objectSpan,
KBPRelationExtractor.NERTag subjectType,
KBPRelationExtractor.NERTag objectType,
Sentence sentence) |
Modifier and Type | Method and Description |
---|---|
Span |
getObjectSpan() |
java.lang.String |
getObjectText() |
Sentence |
getSentence() |
Span |
getSubjectSpan() |
java.lang.String |
getSubjectText() |
java.lang.String |
toString() |
public final Span subjectSpan
public final Span objectSpan
public final KBPRelationExtractor.NERTag subjectType
public final KBPRelationExtractor.NERTag objectType
public final Sentence sentence
public KBPInput(Span subjectSpan, Span objectSpan, KBPRelationExtractor.NERTag subjectType, KBPRelationExtractor.NERTag objectType, Sentence sentence)
public Sentence getSentence()
public Span getSubjectSpan()
public java.lang.String getSubjectText()
public Span getObjectSpan()
public java.lang.String getObjectText()
public java.lang.String toString()
toString
in class java.lang.Object