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, writeStringNoTag
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
public 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.GeneratedMessageV3
public final com.google.protobuf.UnknownFieldSet getUnknownFields()
getUnknownFields
in interface com.google.protobuf.MessageOrBuilder
getUnknownFields
in class com.google.protobuf.GeneratedMessageV3
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class com.google.protobuf.GeneratedMessageV3
public boolean hasSubject()
The surface form of the subject
optional string subject = 1;
hasSubject
in interface CoreNLPProtos.RelationTripleOrBuilder
public java.lang.String getSubject()
The surface form of the subject
optional string subject = 1;
getSubject
in interface CoreNLPProtos.RelationTripleOrBuilder
public com.google.protobuf.ByteString getSubjectBytes()
The surface form of the subject
optional string subject = 1;
getSubjectBytes
in interface CoreNLPProtos.RelationTripleOrBuilder
public boolean hasRelation()
The surface form of the relation (required)
optional string relation = 2;
hasRelation
in interface CoreNLPProtos.RelationTripleOrBuilder
public java.lang.String getRelation()
The surface form of the relation (required)
optional string relation = 2;
getRelation
in interface CoreNLPProtos.RelationTripleOrBuilder
public com.google.protobuf.ByteString getRelationBytes()
The surface form of the relation (required)
optional string relation = 2;
getRelationBytes
in interface CoreNLPProtos.RelationTripleOrBuilder
public boolean hasObject()
The surface form of the object
optional string object = 3;
hasObject
in interface CoreNLPProtos.RelationTripleOrBuilder
public java.lang.String getObject()
The surface form of the object
optional string object = 3;
getObject
in interface CoreNLPProtos.RelationTripleOrBuilder
public com.google.protobuf.ByteString getObjectBytes()
The surface form of the object
optional string object = 3;
getObjectBytes
in interface CoreNLPProtos.RelationTripleOrBuilder
public boolean hasConfidence()
The [optional] confidence of the extraction
optional double confidence = 4;
hasConfidence
in interface CoreNLPProtos.RelationTripleOrBuilder
public double getConfidence()
The [optional] confidence of the extraction
optional double confidence = 4;
getConfidence
in interface CoreNLPProtos.RelationTripleOrBuilder
public 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.RelationTripleOrBuilder
public 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.RelationTripleOrBuilder
public int getSubjectTokensCount()
The tokens comprising the subject of the triple
repeated .edu.stanford.nlp.pipeline.TokenLocation subjectTokens = 13;
getSubjectTokensCount
in interface CoreNLPProtos.RelationTripleOrBuilder
public 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.RelationTripleOrBuilder
public 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.RelationTripleOrBuilder
public 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.RelationTripleOrBuilder
public 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.RelationTripleOrBuilder
public int getRelationTokensCount()
The tokens comprising the relation of the triple
repeated .edu.stanford.nlp.pipeline.TokenLocation relationTokens = 14;
getRelationTokensCount
in interface CoreNLPProtos.RelationTripleOrBuilder
public 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.RelationTripleOrBuilder
public 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.RelationTripleOrBuilder
public 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.RelationTripleOrBuilder
public 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.RelationTripleOrBuilder
public int getObjectTokensCount()
The tokens comprising the object of the triple
repeated .edu.stanford.nlp.pipeline.TokenLocation objectTokens = 15;
getObjectTokensCount
in interface CoreNLPProtos.RelationTripleOrBuilder
public 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.RelationTripleOrBuilder
public 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.RelationTripleOrBuilder
public boolean hasTree()
The dependency graph fragment for this triple
optional .edu.stanford.nlp.pipeline.DependencyGraph tree = 8;
hasTree
in interface CoreNLPProtos.RelationTripleOrBuilder
public CoreNLPProtos.DependencyGraph getTree()
The dependency graph fragment for this triple
optional .edu.stanford.nlp.pipeline.DependencyGraph tree = 8;
getTree
in interface CoreNLPProtos.RelationTripleOrBuilder
public CoreNLPProtos.DependencyGraphOrBuilder getTreeOrBuilder()
The dependency graph fragment for this triple
optional .edu.stanford.nlp.pipeline.DependencyGraph tree = 8;
getTreeOrBuilder
in interface CoreNLPProtos.RelationTripleOrBuilder
public boolean hasIstmod()
If true, this expresses an implicit tmod relation
optional bool istmod = 9;
hasIstmod
in interface CoreNLPProtos.RelationTripleOrBuilder
public boolean getIstmod()
If true, this expresses an implicit tmod relation
optional bool istmod = 9;
getIstmod
in interface CoreNLPProtos.RelationTripleOrBuilder
public boolean hasPrefixBe()
If true, this relation string is missing a 'be' prefix
optional bool prefixBe = 10;
hasPrefixBe
in interface CoreNLPProtos.RelationTripleOrBuilder
public boolean getPrefixBe()
If true, this relation string is missing a 'be' prefix
optional bool prefixBe = 10;
getPrefixBe
in interface CoreNLPProtos.RelationTripleOrBuilder
public boolean hasSuffixBe()
If true, this relation string is missing a 'be' suffix
optional bool suffixBe = 11;
hasSuffixBe
in interface CoreNLPProtos.RelationTripleOrBuilder
public boolean getSuffixBe()
If true, this relation string is missing a 'be' suffix
optional bool suffixBe = 11;
getSuffixBe
in interface CoreNLPProtos.RelationTripleOrBuilder
public boolean hasSuffixOf()
If true, this relation string is missing a 'of' prefix
optional bool suffixOf = 12;
hasSuffixOf
in interface CoreNLPProtos.RelationTripleOrBuilder
public boolean getSuffixOf()
If true, this relation string is missing a 'of' prefix
optional bool suffixOf = 12;
getSuffixOf
in interface CoreNLPProtos.RelationTripleOrBuilder
public final boolean isInitialized()
isInitialized
in interface com.google.protobuf.MessageLiteOrBuilder
isInitialized
in class com.google.protobuf.GeneratedMessageV3
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException
writeTo
in interface com.google.protobuf.MessageLite
writeTo
in class com.google.protobuf.GeneratedMessageV3
java.io.IOException
public int getSerializedSize()
getSerializedSize
in interface com.google.protobuf.MessageLite
getSerializedSize
in class com.google.protobuf.GeneratedMessageV3
public boolean equals(java.lang.Object obj)
equals
in interface com.google.protobuf.Message
equals
in class com.google.protobuf.AbstractMessage
public int hashCode()
hashCode
in interface com.google.protobuf.Message
hashCode
in class com.google.protobuf.AbstractMessage
public static CoreNLPProtos.RelationTriple parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static CoreNLPProtos.RelationTriple parseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static CoreNLPProtos.RelationTriple parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static CoreNLPProtos.RelationTriple parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static CoreNLPProtos.RelationTriple parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static CoreNLPProtos.RelationTriple parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static CoreNLPProtos.RelationTriple parseFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOException
public static CoreNLPProtos.RelationTriple parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
public static CoreNLPProtos.RelationTriple parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOException
public static CoreNLPProtos.RelationTriple parseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
public static CoreNLPProtos.RelationTriple parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException
java.io.IOException
public static CoreNLPProtos.RelationTriple parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
public CoreNLPProtos.RelationTriple.Builder newBuilderForType()
newBuilderForType
in interface com.google.protobuf.Message
newBuilderForType
in interface com.google.protobuf.MessageLite
public 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.Message
toBuilder
in interface com.google.protobuf.MessageLite
protected CoreNLPProtos.RelationTriple.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType
in class com.google.protobuf.GeneratedMessageV3
public 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.Message
getParserForType
in interface com.google.protobuf.MessageLite
getParserForType
in class com.google.protobuf.GeneratedMessageV3
public CoreNLPProtos.RelationTriple getDefaultInstanceForType()
getDefaultInstanceForType
in interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType
in interface com.google.protobuf.MessageOrBuilder