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, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic 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.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 hasHeadStart()
optional uint32 headStart = 6;hasHeadStart in interface CoreNLPProtos.EntityOrBuilderpublic int getHeadStart()
optional uint32 headStart = 6;getHeadStart in interface CoreNLPProtos.EntityOrBuilderpublic boolean hasHeadEnd()
optional uint32 headEnd = 7;hasHeadEnd in interface CoreNLPProtos.EntityOrBuilderpublic int getHeadEnd()
optional uint32 headEnd = 7;getHeadEnd in interface CoreNLPProtos.EntityOrBuilderpublic boolean hasMentionType()
optional string mentionType = 8;hasMentionType in interface CoreNLPProtos.EntityOrBuilderpublic java.lang.String getMentionType()
optional string mentionType = 8;getMentionType in interface CoreNLPProtos.EntityOrBuilderpublic com.google.protobuf.ByteString getMentionTypeBytes()
optional string mentionType = 8;getMentionTypeBytes in interface CoreNLPProtos.EntityOrBuilderpublic boolean hasNormalizedName()
optional string normalizedName = 9;hasNormalizedName in interface CoreNLPProtos.EntityOrBuilderpublic java.lang.String getNormalizedName()
optional string normalizedName = 9;getNormalizedName in interface CoreNLPProtos.EntityOrBuilderpublic com.google.protobuf.ByteString getNormalizedNameBytes()
optional string normalizedName = 9;getNormalizedNameBytes in interface CoreNLPProtos.EntityOrBuilderpublic boolean hasHeadTokenIndex()
optional uint32 headTokenIndex = 10;hasHeadTokenIndex in interface CoreNLPProtos.EntityOrBuilderpublic int getHeadTokenIndex()
optional uint32 headTokenIndex = 10;getHeadTokenIndex in interface CoreNLPProtos.EntityOrBuilderpublic boolean hasCorefID()
optional string corefID = 11;hasCorefID in interface CoreNLPProtos.EntityOrBuilderpublic java.lang.String getCorefID()
optional string corefID = 11;getCorefID in interface CoreNLPProtos.EntityOrBuilderpublic com.google.protobuf.ByteString getCorefIDBytes()
optional string corefID = 11;getCorefIDBytes in interface CoreNLPProtos.EntityOrBuilderpublic boolean hasObjectID()
inherited from ExtractionObject
optional string objectID = 1;hasObjectID in interface CoreNLPProtos.EntityOrBuilderpublic java.lang.String getObjectID()
inherited from ExtractionObject
optional string objectID = 1;getObjectID in interface CoreNLPProtos.EntityOrBuilderpublic com.google.protobuf.ByteString getObjectIDBytes()
inherited from ExtractionObject
optional string objectID = 1;getObjectIDBytes in interface CoreNLPProtos.EntityOrBuilderpublic boolean hasExtentStart()
optional uint32 extentStart = 2;hasExtentStart in interface CoreNLPProtos.EntityOrBuilderpublic int getExtentStart()
optional uint32 extentStart = 2;getExtentStart in interface CoreNLPProtos.EntityOrBuilderpublic boolean hasExtentEnd()
optional uint32 extentEnd = 3;hasExtentEnd in interface CoreNLPProtos.EntityOrBuilderpublic int getExtentEnd()
optional uint32 extentEnd = 3;getExtentEnd in interface CoreNLPProtos.EntityOrBuilderpublic boolean hasType()
optional string type = 4;hasType in interface CoreNLPProtos.EntityOrBuilderpublic java.lang.String getType()
optional string type = 4;getType in interface CoreNLPProtos.EntityOrBuilderpublic com.google.protobuf.ByteString getTypeBytes()
optional string type = 4;getTypeBytes in interface CoreNLPProtos.EntityOrBuilderpublic boolean hasSubtype()
Implicit
uint32 sentence @see implicit in sentence
optional string subtype = 5;hasSubtype in interface CoreNLPProtos.EntityOrBuilderpublic java.lang.String getSubtype()
Implicit
uint32 sentence @see implicit in sentence
optional string subtype = 5;getSubtype in interface CoreNLPProtos.EntityOrBuilderpublic com.google.protobuf.ByteString getSubtypeBytes()
Implicit
uint32 sentence @see implicit in sentence
optional string subtype = 5;getSubtypeBytes in interface CoreNLPProtos.EntityOrBuilderpublic 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.Entity parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static CoreNLPProtos.Entity parseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static CoreNLPProtos.Entity parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static CoreNLPProtos.Entity parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static CoreNLPProtos.Entity parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static CoreNLPProtos.Entity parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static CoreNLPProtos.Entity parseFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOExceptionpublic static CoreNLPProtos.Entity parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic static CoreNLPProtos.Entity parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOExceptionpublic static CoreNLPProtos.Entity parseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic static CoreNLPProtos.Entity parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException
java.io.IOExceptionpublic static CoreNLPProtos.Entity parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic CoreNLPProtos.Entity.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic 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.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected CoreNLPProtos.Entity.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public 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.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public CoreNLPProtos.Entity getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder