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 |
|---|---|
Optional<String> |
objectLink
The canonical entity link of the object
|
Optional<String> |
subjectLink
The canonical entity link of the subject
|
sourceTreecanonicalObject, canonicalSubject, confidence, object, relation, subject| Constructor and Description |
|---|
WithLink(List<CoreLabel> subject,
List<CoreLabel> canonicalSubject,
List<CoreLabel> relation,
List<CoreLabel> object,
List<CoreLabel> canonicalObject,
double confidence,
SemanticGraph tree,
String subjectLink,
String objectLink)
Create a new relation triple
|
| Modifier and Type | Method and Description |
|---|---|
String |
objectLink()
The entity link of the subject
|
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, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitforEach, spliteratorpublic String subjectLink()
subjectLink in class RelationTriplepublic String objectLink()
objectLink in class RelationTriple