public static class RelationTriple.WithLink extends RelationTriple.WithTree
RelationTriple, but with both the tree and the entity
links saved as well.RelationTriple.WithLink, RelationTriple.WithTree| Modifier and Type | Field and Description |
|---|---|
java.util.Optional<java.lang.String> |
objectLink
The canonical entity link of the object
|
java.util.Optional<java.lang.String> |
subjectLink
The canonical entity link of the subject
|
sourceTreecanonicalObject, canonicalSubject, confidence, object, relation, subject| Constructor and Description |
|---|
WithLink(java.util.List<CoreLabel> subject,
java.util.List<CoreLabel> canonicalSubject,
java.util.List<CoreLabel> relation,
java.util.List<CoreLabel> object,
java.util.List<CoreLabel> canonicalObject,
double confidence,
SemanticGraph tree,
java.lang.String subjectLink,
java.lang.String objectLink)
Create a new relation triple
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
objectLink()
The entity link of the subject
|
java.lang.String |
subjectLink()
The entity link of the subject
|
asDependencyTree, objectHead, relationHead, subjectHeadallTokens, asSentence, compareTo, confidenceGloss, equals, hashCode, isPrefixBe, isPrefixBe, isSuffixBe, isSuffixBe, isSuffixOf, isSuffixOf, istmod, istmod, iterator, objectGloss, objectLemmaGloss, objectTokenSpan, relationGloss, relationLemmaGloss, relationTokenSpan, subjectGloss, subjectLemmaGloss, subjectTokenSpan, toQaSrlString, toReverbString, toStringpublic final java.util.Optional<java.lang.String> subjectLink
public final java.util.Optional<java.lang.String> objectLink
public WithLink(java.util.List<CoreLabel> subject, java.util.List<CoreLabel> canonicalSubject, java.util.List<CoreLabel> relation, java.util.List<CoreLabel> object, java.util.List<CoreLabel> canonicalObject, double confidence, SemanticGraph tree, java.lang.String subjectLink, java.lang.String objectLink)
public java.lang.String subjectLink()
subjectLink in class RelationTriplepublic java.lang.String objectLink()
objectLink in class RelationTriple