public static final class CoreNLPProtos.Entity extends com.google.protobuf.GeneratedMessageV3 implements CoreNLPProtos.EntityOrBuilder
A representation of an entity in a relation. This corresponds to the EntityMention, and more broadly the ExtractionObject classes.Protobuf type
edu.stanford.nlp.pipeline.Entity
Modifier and Type | Class and Description |
---|---|
static class |
CoreNLPProtos.Entity.Builder
A representation of an entity in a relation.
|
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 |
COREFID_FIELD_NUMBER |
static int |
EXTENTEND_FIELD_NUMBER |
static int |
EXTENTSTART_FIELD_NUMBER |
static int |
HEADEND_FIELD_NUMBER |
static int |
HEADSTART_FIELD_NUMBER |
static int |
HEADTOKENINDEX_FIELD_NUMBER |
static int |
MENTIONTYPE_FIELD_NUMBER |
static int |
NORMALIZEDNAME_FIELD_NUMBER |
static int |
OBJECTID_FIELD_NUMBER |
static com.google.protobuf.Parser<CoreNLPProtos.Entity> |
PARSER
Deprecated.
|
static int |
SUBTYPE_FIELD_NUMBER |
static int |
TYPE_FIELD_NUMBER |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getCorefID()
optional string corefID = 11; |
com.google.protobuf.ByteString |
getCorefIDBytes()
optional string corefID = 11; |
static CoreNLPProtos.Entity |
getDefaultInstance() |
CoreNLPProtos.Entity |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
int |
getExtentEnd()
optional uint32 extentEnd = 3; |
int |
getExtentStart()
optional uint32 extentStart = 2; |
int |
getHeadEnd()
optional uint32 headEnd = 7; |
int |
getHeadStart()
optional uint32 headStart = 6; |
int |
getHeadTokenIndex()
optional uint32 headTokenIndex = 10; |
java.lang.String |
getMentionType()
optional string mentionType = 8; |
com.google.protobuf.ByteString |
getMentionTypeBytes()
optional string mentionType = 8; |
java.lang.String |
getNormalizedName()
optional string normalizedName = 9; |
com.google.protobuf.ByteString |
getNormalizedNameBytes()
optional string normalizedName = 9; |
java.lang.String |
getObjectID()
inherited from ExtractionObject
|
com.google.protobuf.ByteString |
getObjectIDBytes()
inherited from ExtractionObject
|
com.google.protobuf.Parser<CoreNLPProtos.Entity> |
getParserForType() |
int |
getSerializedSize() |
java.lang.String |
getSubtype()
Implicit
uint32 sentence @see implicit in sentence
|
com.google.protobuf.ByteString |
getSubtypeBytes()
Implicit
uint32 sentence @see implicit in sentence
|
java.lang.String |
getType()
optional string type = 4; |
com.google.protobuf.ByteString |
getTypeBytes()
optional string type = 4; |
com.google.protobuf.UnknownFieldSet |
getUnknownFields() |
boolean |
hasCorefID()
optional string corefID = 11; |
boolean |
hasExtentEnd()
optional uint32 extentEnd = 3; |
boolean |
hasExtentStart()
optional uint32 extentStart = 2; |
int |
hashCode() |
boolean |
hasHeadEnd()
optional uint32 headEnd = 7; |
boolean |
hasHeadStart()
optional uint32 headStart = 6; |
boolean |
hasHeadTokenIndex()
optional uint32 headTokenIndex = 10; |
boolean |
hasMentionType()
optional string mentionType = 8; |
boolean |
hasNormalizedName()
optional string normalizedName = 9; |
boolean |
hasObjectID()
inherited from ExtractionObject
|
boolean |
hasSubtype()
Implicit
uint32 sentence @see implicit in sentence
|
boolean |
hasType()
optional string type = 4; |
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static CoreNLPProtos.Entity.Builder |
newBuilder() |
static CoreNLPProtos.Entity.Builder |
newBuilder(CoreNLPProtos.Entity prototype) |
CoreNLPProtos.Entity.Builder |
newBuilderForType() |
protected CoreNLPProtos.Entity.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
protected java.lang.Object |
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) |
static CoreNLPProtos.Entity |
parseDelimitedFrom(java.io.InputStream input) |
static CoreNLPProtos.Entity |
parseDelimitedFrom(java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static CoreNLPProtos.Entity |
parseFrom(byte[] data) |
static CoreNLPProtos.Entity |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static CoreNLPProtos.Entity |
parseFrom(java.nio.ByteBuffer data) |
static CoreNLPProtos.Entity |
parseFrom(java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static CoreNLPProtos.Entity |
parseFrom(com.google.protobuf.ByteString data) |
static CoreNLPProtos.Entity |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static CoreNLPProtos.Entity |
parseFrom(com.google.protobuf.CodedInputStream input) |
static CoreNLPProtos.Entity |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static CoreNLPProtos.Entity |
parseFrom(java.io.InputStream input) |
static CoreNLPProtos.Entity |
parseFrom(java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<CoreNLPProtos.Entity> |
parser() |
CoreNLPProtos.Entity.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 HEADSTART_FIELD_NUMBER
public static final int HEADEND_FIELD_NUMBER
public static final int MENTIONTYPE_FIELD_NUMBER
public static final int NORMALIZEDNAME_FIELD_NUMBER
public static final int HEADTOKENINDEX_FIELD_NUMBER
public static final int COREFID_FIELD_NUMBER
public static final int OBJECTID_FIELD_NUMBER
public static final int EXTENTSTART_FIELD_NUMBER
public static final int EXTENTEND_FIELD_NUMBER
public static final int TYPE_FIELD_NUMBER
public static final int SUBTYPE_FIELD_NUMBER
@Deprecated public static final com.google.protobuf.Parser<CoreNLPProtos.Entity> 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 hasHeadStart()
optional uint32 headStart = 6;
hasHeadStart
in interface CoreNLPProtos.EntityOrBuilder
public int getHeadStart()
optional uint32 headStart = 6;
getHeadStart
in interface CoreNLPProtos.EntityOrBuilder
public boolean hasHeadEnd()
optional uint32 headEnd = 7;
hasHeadEnd
in interface CoreNLPProtos.EntityOrBuilder
public int getHeadEnd()
optional uint32 headEnd = 7;
getHeadEnd
in interface CoreNLPProtos.EntityOrBuilder
public boolean hasMentionType()
optional string mentionType = 8;
hasMentionType
in interface CoreNLPProtos.EntityOrBuilder
public java.lang.String getMentionType()
optional string mentionType = 8;
getMentionType
in interface CoreNLPProtos.EntityOrBuilder
public com.google.protobuf.ByteString getMentionTypeBytes()
optional string mentionType = 8;
getMentionTypeBytes
in interface CoreNLPProtos.EntityOrBuilder
public boolean hasNormalizedName()
optional string normalizedName = 9;
hasNormalizedName
in interface CoreNLPProtos.EntityOrBuilder
public java.lang.String getNormalizedName()
optional string normalizedName = 9;
getNormalizedName
in interface CoreNLPProtos.EntityOrBuilder
public com.google.protobuf.ByteString getNormalizedNameBytes()
optional string normalizedName = 9;
getNormalizedNameBytes
in interface CoreNLPProtos.EntityOrBuilder
public boolean hasHeadTokenIndex()
optional uint32 headTokenIndex = 10;
hasHeadTokenIndex
in interface CoreNLPProtos.EntityOrBuilder
public int getHeadTokenIndex()
optional uint32 headTokenIndex = 10;
getHeadTokenIndex
in interface CoreNLPProtos.EntityOrBuilder
public boolean hasCorefID()
optional string corefID = 11;
hasCorefID
in interface CoreNLPProtos.EntityOrBuilder
public java.lang.String getCorefID()
optional string corefID = 11;
getCorefID
in interface CoreNLPProtos.EntityOrBuilder
public com.google.protobuf.ByteString getCorefIDBytes()
optional string corefID = 11;
getCorefIDBytes
in interface CoreNLPProtos.EntityOrBuilder
public boolean hasObjectID()
inherited from ExtractionObject
optional string objectID = 1;
hasObjectID
in interface CoreNLPProtos.EntityOrBuilder
public java.lang.String getObjectID()
inherited from ExtractionObject
optional string objectID = 1;
getObjectID
in interface CoreNLPProtos.EntityOrBuilder
public com.google.protobuf.ByteString getObjectIDBytes()
inherited from ExtractionObject
optional string objectID = 1;
getObjectIDBytes
in interface CoreNLPProtos.EntityOrBuilder
public boolean hasExtentStart()
optional uint32 extentStart = 2;
hasExtentStart
in interface CoreNLPProtos.EntityOrBuilder
public int getExtentStart()
optional uint32 extentStart = 2;
getExtentStart
in interface CoreNLPProtos.EntityOrBuilder
public boolean hasExtentEnd()
optional uint32 extentEnd = 3;
hasExtentEnd
in interface CoreNLPProtos.EntityOrBuilder
public int getExtentEnd()
optional uint32 extentEnd = 3;
getExtentEnd
in interface CoreNLPProtos.EntityOrBuilder
public boolean hasType()
optional string type = 4;
hasType
in interface CoreNLPProtos.EntityOrBuilder
public java.lang.String getType()
optional string type = 4;
getType
in interface CoreNLPProtos.EntityOrBuilder
public com.google.protobuf.ByteString getTypeBytes()
optional string type = 4;
getTypeBytes
in interface CoreNLPProtos.EntityOrBuilder
public boolean hasSubtype()
Implicit uint32 sentence @see implicit in sentence
optional string subtype = 5;
hasSubtype
in interface CoreNLPProtos.EntityOrBuilder
public java.lang.String getSubtype()
Implicit uint32 sentence @see implicit in sentence
optional string subtype = 5;
getSubtype
in interface CoreNLPProtos.EntityOrBuilder
public com.google.protobuf.ByteString getSubtypeBytes()
Implicit uint32 sentence @see implicit in sentence
optional string subtype = 5;
getSubtypeBytes
in interface CoreNLPProtos.EntityOrBuilder
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.Entity parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static CoreNLPProtos.Entity parseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static CoreNLPProtos.Entity parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static CoreNLPProtos.Entity parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static CoreNLPProtos.Entity parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static CoreNLPProtos.Entity parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static CoreNLPProtos.Entity parseFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOException
public static CoreNLPProtos.Entity parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
public static CoreNLPProtos.Entity parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOException
public static CoreNLPProtos.Entity parseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
public static CoreNLPProtos.Entity parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException
java.io.IOException
public static CoreNLPProtos.Entity parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
public CoreNLPProtos.Entity.Builder newBuilderForType()
newBuilderForType
in interface com.google.protobuf.Message
newBuilderForType
in interface com.google.protobuf.MessageLite
public static CoreNLPProtos.Entity.Builder newBuilder()
public static CoreNLPProtos.Entity.Builder newBuilder(CoreNLPProtos.Entity prototype)
public CoreNLPProtos.Entity.Builder toBuilder()
toBuilder
in interface com.google.protobuf.Message
toBuilder
in interface com.google.protobuf.MessageLite
protected CoreNLPProtos.Entity.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType
in class com.google.protobuf.GeneratedMessageV3
public static CoreNLPProtos.Entity getDefaultInstance()
public static com.google.protobuf.Parser<CoreNLPProtos.Entity> parser()
public com.google.protobuf.Parser<CoreNLPProtos.Entity> getParserForType()
getParserForType
in interface com.google.protobuf.Message
getParserForType
in interface com.google.protobuf.MessageLite
getParserForType
in class com.google.protobuf.GeneratedMessageV3
public CoreNLPProtos.Entity getDefaultInstanceForType()
getDefaultInstanceForType
in interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType
in interface com.google.protobuf.MessageOrBuilder