public static final class CoreNLPProtos.RelationTriple extends com.google.protobuf.GeneratedMessageV3 implements CoreNLPProtos.RelationTripleOrBuilder
An OpenIE relation triple. Created by the openie annotator.Protobuf type
edu.stanford.nlp.pipeline.RelationTriple| Modifier and Type | Class and Description |
|---|---|
static class |
CoreNLPProtos.RelationTriple.Builder
An OpenIE relation triple.
|
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage,BuilderType extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter| Modifier and Type | Field and Description |
|---|---|
static int |
CONFIDENCE_FIELD_NUMBER |
static int |
ISTMOD_FIELD_NUMBER |
static int |
OBJECT_FIELD_NUMBER |
static int |
OBJECTTOKENS_FIELD_NUMBER |
static com.google.protobuf.Parser<CoreNLPProtos.RelationTriple> |
PARSER
Deprecated.
|
static int |
PREFIXBE_FIELD_NUMBER |
static int |
RELATION_FIELD_NUMBER |
static int |
RELATIONTOKENS_FIELD_NUMBER |
static int |
SUBJECT_FIELD_NUMBER |
static int |
SUBJECTTOKENS_FIELD_NUMBER |
static int |
SUFFIXBE_FIELD_NUMBER |
static int |
SUFFIXOF_FIELD_NUMBER |
static int |
TREE_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
double |
getConfidence()
The [optional] confidence of the extraction
|
static CoreNLPProtos.RelationTriple |
getDefaultInstance() |
CoreNLPProtos.RelationTriple |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
boolean |
getIstmod()
If true, this expresses an implicit tmod relation
|
java.lang.String |
getObject()
The surface form of the object
|
com.google.protobuf.ByteString |
getObjectBytes()
The surface form of the object
|
CoreNLPProtos.TokenLocation |
getObjectTokens(int index)
The tokens comprising the object of the triple
|
int |
getObjectTokensCount()
The tokens comprising the object of the triple
|
java.util.List<CoreNLPProtos.TokenLocation> |
getObjectTokensList()
The tokens comprising the object of the triple
|
CoreNLPProtos.TokenLocationOrBuilder |
getObjectTokensOrBuilder(int index)
The tokens comprising the object of the triple
|
java.util.List<? extends CoreNLPProtos.TokenLocationOrBuilder> |
getObjectTokensOrBuilderList()
The tokens comprising the object of the triple
|
com.google.protobuf.Parser<CoreNLPProtos.RelationTriple> |
getParserForType() |
boolean |
getPrefixBe()
If true, this relation string is missing a 'be' prefix
|
java.lang.String |
getRelation()
The surface form of the relation (required)
|
com.google.protobuf.ByteString |
getRelationBytes()
The surface form of the relation (required)
|
CoreNLPProtos.TokenLocation |
getRelationTokens(int index)
The tokens comprising the relation of the triple
|
int |
getRelationTokensCount()
The tokens comprising the relation of the triple
|
java.util.List<CoreNLPProtos.TokenLocation> |
getRelationTokensList()
The tokens comprising the relation of the triple
|
CoreNLPProtos.TokenLocationOrBuilder |
getRelationTokensOrBuilder(int index)
The tokens comprising the relation of the triple
|
java.util.List<? extends CoreNLPProtos.TokenLocationOrBuilder> |
getRelationTokensOrBuilderList()
The tokens comprising the relation of the triple
|
int |
getSerializedSize() |
java.lang.String |
getSubject()
The surface form of the subject
|
com.google.protobuf.ByteString |
getSubjectBytes()
The surface form of the subject
|
CoreNLPProtos.TokenLocation |
getSubjectTokens(int index)
The tokens comprising the subject of the triple
|
int |
getSubjectTokensCount()
The tokens comprising the subject of the triple
|
java.util.List<CoreNLPProtos.TokenLocation> |
getSubjectTokensList()
The tokens comprising the subject of the triple
|
CoreNLPProtos.TokenLocationOrBuilder |
getSubjectTokensOrBuilder(int index)
The tokens comprising the subject of the triple
|
java.util.List<? extends CoreNLPProtos.TokenLocationOrBuilder> |
getSubjectTokensOrBuilderList()
The tokens comprising the subject of the triple
|
boolean |
getSuffixBe()
If true, this relation string is missing a 'be' suffix
|
boolean |
getSuffixOf()
If true, this relation string is missing a 'of' prefix
|
CoreNLPProtos.DependencyGraph |
getTree()
The dependency graph fragment for this triple
|
CoreNLPProtos.DependencyGraphOrBuilder |
getTreeOrBuilder()
The dependency graph fragment for this triple
|
com.google.protobuf.UnknownFieldSet |
getUnknownFields() |
boolean |
hasConfidence()
The [optional] confidence of the extraction
|
int |
hashCode() |
boolean |
hasIstmod()
If true, this expresses an implicit tmod relation
|
boolean |
hasObject()
The surface form of the object
|
boolean |
hasPrefixBe()
If true, this relation string is missing a 'be' prefix
|
boolean |
hasRelation()
The surface form of the relation (required)
|
boolean |
hasSubject()
The surface form of the subject
|
boolean |
hasSuffixBe()
If true, this relation string is missing a 'be' suffix
|
boolean |
hasSuffixOf()
If true, this relation string is missing a 'of' prefix
|
boolean |
hasTree()
The dependency graph fragment for this triple
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static CoreNLPProtos.RelationTriple.Builder |
newBuilder() |
static CoreNLPProtos.RelationTriple.Builder |
newBuilder(CoreNLPProtos.RelationTriple prototype) |
CoreNLPProtos.RelationTriple.Builder |
newBuilderForType() |
protected CoreNLPProtos.RelationTriple.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
protected java.lang.Object |
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) |
static CoreNLPProtos.RelationTriple |
parseDelimitedFrom(java.io.InputStream input) |
static CoreNLPProtos.RelationTriple |
parseDelimitedFrom(java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static CoreNLPProtos.RelationTriple |
parseFrom(byte[] data) |
static CoreNLPProtos.RelationTriple |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static CoreNLPProtos.RelationTriple |
parseFrom(java.nio.ByteBuffer data) |
static CoreNLPProtos.RelationTriple |
parseFrom(java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static CoreNLPProtos.RelationTriple |
parseFrom(com.google.protobuf.ByteString data) |
static CoreNLPProtos.RelationTriple |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static CoreNLPProtos.RelationTriple |
parseFrom(com.google.protobuf.CodedInputStream input) |
static CoreNLPProtos.RelationTriple |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static CoreNLPProtos.RelationTriple |
parseFrom(java.io.InputStream input) |
static CoreNLPProtos.RelationTriple |
parseFrom(java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<CoreNLPProtos.RelationTriple> |
parser() |
CoreNLPProtos.RelationTriple.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic static final int SUBJECT_FIELD_NUMBER
public static final int RELATION_FIELD_NUMBER
public static final int OBJECT_FIELD_NUMBER
public static final int CONFIDENCE_FIELD_NUMBER
public static final int SUBJECTTOKENS_FIELD_NUMBER
public static final int RELATIONTOKENS_FIELD_NUMBER
public static final int OBJECTTOKENS_FIELD_NUMBER
public static final int TREE_FIELD_NUMBER
public static final int ISTMOD_FIELD_NUMBER
public static final int PREFIXBE_FIELD_NUMBER
public static final int SUFFIXBE_FIELD_NUMBER
public static final int SUFFIXOF_FIELD_NUMBER
@Deprecated public static final com.google.protobuf.Parser<CoreNLPProtos.RelationTriple> PARSER
protected java.lang.Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
newInstance in class com.google.protobuf.GeneratedMessageV3public final com.google.protobuf.UnknownFieldSet getUnknownFields()
getUnknownFields in interface com.google.protobuf.MessageOrBuildergetUnknownFields in class com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public boolean hasSubject()
The surface form of the subject
optional string subject = 1;hasSubject in interface CoreNLPProtos.RelationTripleOrBuilderpublic java.lang.String getSubject()
The surface form of the subject
optional string subject = 1;getSubject in interface CoreNLPProtos.RelationTripleOrBuilderpublic com.google.protobuf.ByteString getSubjectBytes()
The surface form of the subject
optional string subject = 1;getSubjectBytes in interface CoreNLPProtos.RelationTripleOrBuilderpublic boolean hasRelation()
The surface form of the relation (required)
optional string relation = 2;hasRelation in interface CoreNLPProtos.RelationTripleOrBuilderpublic java.lang.String getRelation()
The surface form of the relation (required)
optional string relation = 2;getRelation in interface CoreNLPProtos.RelationTripleOrBuilderpublic com.google.protobuf.ByteString getRelationBytes()
The surface form of the relation (required)
optional string relation = 2;getRelationBytes in interface CoreNLPProtos.RelationTripleOrBuilderpublic boolean hasObject()
The surface form of the object
optional string object = 3;hasObject in interface CoreNLPProtos.RelationTripleOrBuilderpublic java.lang.String getObject()
The surface form of the object
optional string object = 3;getObject in interface CoreNLPProtos.RelationTripleOrBuilderpublic com.google.protobuf.ByteString getObjectBytes()
The surface form of the object
optional string object = 3;getObjectBytes in interface CoreNLPProtos.RelationTripleOrBuilderpublic boolean hasConfidence()
The [optional] confidence of the extraction
optional double confidence = 4;hasConfidence in interface CoreNLPProtos.RelationTripleOrBuilderpublic double getConfidence()
The [optional] confidence of the extraction
optional double confidence = 4;getConfidence in interface CoreNLPProtos.RelationTripleOrBuilderpublic java.util.List<CoreNLPProtos.TokenLocation> getSubjectTokensList()
The tokens comprising the subject of the triple
repeated .edu.stanford.nlp.pipeline.TokenLocation subjectTokens = 13;getSubjectTokensList in interface CoreNLPProtos.RelationTripleOrBuilderpublic java.util.List<? extends CoreNLPProtos.TokenLocationOrBuilder> getSubjectTokensOrBuilderList()
The tokens comprising the subject of the triple
repeated .edu.stanford.nlp.pipeline.TokenLocation subjectTokens = 13;getSubjectTokensOrBuilderList in interface CoreNLPProtos.RelationTripleOrBuilderpublic int getSubjectTokensCount()
The tokens comprising the subject of the triple
repeated .edu.stanford.nlp.pipeline.TokenLocation subjectTokens = 13;getSubjectTokensCount in interface CoreNLPProtos.RelationTripleOrBuilderpublic CoreNLPProtos.TokenLocation getSubjectTokens(int index)
The tokens comprising the subject of the triple
repeated .edu.stanford.nlp.pipeline.TokenLocation subjectTokens = 13;getSubjectTokens in interface CoreNLPProtos.RelationTripleOrBuilderpublic CoreNLPProtos.TokenLocationOrBuilder getSubjectTokensOrBuilder(int index)
The tokens comprising the subject of the triple
repeated .edu.stanford.nlp.pipeline.TokenLocation subjectTokens = 13;getSubjectTokensOrBuilder in interface CoreNLPProtos.RelationTripleOrBuilderpublic java.util.List<CoreNLPProtos.TokenLocation> getRelationTokensList()
The tokens comprising the relation of the triple
repeated .edu.stanford.nlp.pipeline.TokenLocation relationTokens = 14;getRelationTokensList in interface CoreNLPProtos.RelationTripleOrBuilderpublic java.util.List<? extends CoreNLPProtos.TokenLocationOrBuilder> getRelationTokensOrBuilderList()
The tokens comprising the relation of the triple
repeated .edu.stanford.nlp.pipeline.TokenLocation relationTokens = 14;getRelationTokensOrBuilderList in interface CoreNLPProtos.RelationTripleOrBuilderpublic int getRelationTokensCount()
The tokens comprising the relation of the triple
repeated .edu.stanford.nlp.pipeline.TokenLocation relationTokens = 14;getRelationTokensCount in interface CoreNLPProtos.RelationTripleOrBuilderpublic CoreNLPProtos.TokenLocation getRelationTokens(int index)
The tokens comprising the relation of the triple
repeated .edu.stanford.nlp.pipeline.TokenLocation relationTokens = 14;getRelationTokens in interface CoreNLPProtos.RelationTripleOrBuilderpublic CoreNLPProtos.TokenLocationOrBuilder getRelationTokensOrBuilder(int index)
The tokens comprising the relation of the triple
repeated .edu.stanford.nlp.pipeline.TokenLocation relationTokens = 14;getRelationTokensOrBuilder in interface CoreNLPProtos.RelationTripleOrBuilderpublic java.util.List<CoreNLPProtos.TokenLocation> getObjectTokensList()
The tokens comprising the object of the triple
repeated .edu.stanford.nlp.pipeline.TokenLocation objectTokens = 15;getObjectTokensList in interface CoreNLPProtos.RelationTripleOrBuilderpublic java.util.List<? extends CoreNLPProtos.TokenLocationOrBuilder> getObjectTokensOrBuilderList()
The tokens comprising the object of the triple
repeated .edu.stanford.nlp.pipeline.TokenLocation objectTokens = 15;getObjectTokensOrBuilderList in interface CoreNLPProtos.RelationTripleOrBuilderpublic int getObjectTokensCount()
The tokens comprising the object of the triple
repeated .edu.stanford.nlp.pipeline.TokenLocation objectTokens = 15;getObjectTokensCount in interface CoreNLPProtos.RelationTripleOrBuilderpublic CoreNLPProtos.TokenLocation getObjectTokens(int index)
The tokens comprising the object of the triple
repeated .edu.stanford.nlp.pipeline.TokenLocation objectTokens = 15;getObjectTokens in interface CoreNLPProtos.RelationTripleOrBuilderpublic CoreNLPProtos.TokenLocationOrBuilder getObjectTokensOrBuilder(int index)
The tokens comprising the object of the triple
repeated .edu.stanford.nlp.pipeline.TokenLocation objectTokens = 15;getObjectTokensOrBuilder in interface CoreNLPProtos.RelationTripleOrBuilderpublic boolean hasTree()
The dependency graph fragment for this triple
optional .edu.stanford.nlp.pipeline.DependencyGraph tree = 8;hasTree in interface CoreNLPProtos.RelationTripleOrBuilderpublic CoreNLPProtos.DependencyGraph getTree()
The dependency graph fragment for this triple
optional .edu.stanford.nlp.pipeline.DependencyGraph tree = 8;getTree in interface CoreNLPProtos.RelationTripleOrBuilderpublic CoreNLPProtos.DependencyGraphOrBuilder getTreeOrBuilder()
The dependency graph fragment for this triple
optional .edu.stanford.nlp.pipeline.DependencyGraph tree = 8;getTreeOrBuilder in interface CoreNLPProtos.RelationTripleOrBuilderpublic boolean hasIstmod()
If true, this expresses an implicit tmod relation
optional bool istmod = 9;hasIstmod in interface CoreNLPProtos.RelationTripleOrBuilderpublic boolean getIstmod()
If true, this expresses an implicit tmod relation
optional bool istmod = 9;getIstmod in interface CoreNLPProtos.RelationTripleOrBuilderpublic boolean hasPrefixBe()
If true, this relation string is missing a 'be' prefix
optional bool prefixBe = 10;hasPrefixBe in interface CoreNLPProtos.RelationTripleOrBuilderpublic boolean getPrefixBe()
If true, this relation string is missing a 'be' prefix
optional bool prefixBe = 10;getPrefixBe in interface CoreNLPProtos.RelationTripleOrBuilderpublic boolean hasSuffixBe()
If true, this relation string is missing a 'be' suffix
optional bool suffixBe = 11;hasSuffixBe in interface CoreNLPProtos.RelationTripleOrBuilderpublic boolean getSuffixBe()
If true, this relation string is missing a 'be' suffix
optional bool suffixBe = 11;getSuffixBe in interface CoreNLPProtos.RelationTripleOrBuilderpublic boolean hasSuffixOf()
If true, this relation string is missing a 'of' prefix
optional bool suffixOf = 12;hasSuffixOf in interface CoreNLPProtos.RelationTripleOrBuilderpublic boolean getSuffixOf()
If true, this relation string is missing a 'of' prefix
optional bool suffixOf = 12;getSuffixOf in interface CoreNLPProtos.RelationTripleOrBuilderpublic final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageV3java.io.IOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessageV3public boolean equals(java.lang.Object obj)
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static CoreNLPProtos.RelationTriple parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static CoreNLPProtos.RelationTriple parseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static CoreNLPProtos.RelationTriple parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static CoreNLPProtos.RelationTriple parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static CoreNLPProtos.RelationTriple parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static CoreNLPProtos.RelationTriple parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static CoreNLPProtos.RelationTriple parseFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOExceptionpublic static CoreNLPProtos.RelationTriple parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic static CoreNLPProtos.RelationTriple parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOExceptionpublic static CoreNLPProtos.RelationTriple parseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic static CoreNLPProtos.RelationTriple parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException
java.io.IOExceptionpublic static CoreNLPProtos.RelationTriple parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic CoreNLPProtos.RelationTriple.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static CoreNLPProtos.RelationTriple.Builder newBuilder()
public static CoreNLPProtos.RelationTriple.Builder newBuilder(CoreNLPProtos.RelationTriple prototype)
public CoreNLPProtos.RelationTriple.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected CoreNLPProtos.RelationTriple.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static CoreNLPProtos.RelationTriple getDefaultInstance()
public static com.google.protobuf.Parser<CoreNLPProtos.RelationTriple> parser()
public com.google.protobuf.Parser<CoreNLPProtos.RelationTriple> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public CoreNLPProtos.RelationTriple getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder