public static final class CoreNLPProtos.Entity.Builder extends <any> 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 | Method and Description |
|---|---|
CoreNLPProtos.Entity.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
CoreNLPProtos.Entity |
build() |
CoreNLPProtos.Entity |
buildPartial() |
CoreNLPProtos.Entity.Builder |
clear() |
CoreNLPProtos.Entity.Builder |
clearCorefID()
optional string corefID = 11; |
CoreNLPProtos.Entity.Builder |
clearExtentEnd()
optional uint32 extentEnd = 3; |
CoreNLPProtos.Entity.Builder |
clearExtentStart()
optional uint32 extentStart = 2; |
CoreNLPProtos.Entity.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
CoreNLPProtos.Entity.Builder |
clearHeadEnd()
optional uint32 headEnd = 7; |
CoreNLPProtos.Entity.Builder |
clearHeadStart()
optional uint32 headStart = 6; |
CoreNLPProtos.Entity.Builder |
clearHeadTokenIndex()
optional uint32 headTokenIndex = 10; |
CoreNLPProtos.Entity.Builder |
clearMentionType()
optional string mentionType = 8; |
CoreNLPProtos.Entity.Builder |
clearNormalizedName()
optional string normalizedName = 9; |
CoreNLPProtos.Entity.Builder |
clearObjectID()
inherited from ExtractionObject
|
CoreNLPProtos.Entity.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
CoreNLPProtos.Entity.Builder |
clearSubtype()
Implicit
uint32 sentence @see implicit in sentence
|
CoreNLPProtos.Entity.Builder |
clearType()
optional string type = 4; |
CoreNLPProtos.Entity.Builder |
clone() |
String |
getCorefID()
optional string corefID = 11; |
com.google.protobuf.ByteString |
getCorefIDBytes()
optional string corefID = 11; |
CoreNLPProtos.Entity |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
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; |
String |
getMentionType()
optional string mentionType = 8; |
com.google.protobuf.ByteString |
getMentionTypeBytes()
optional string mentionType = 8; |
String |
getNormalizedName()
optional string normalizedName = 9; |
com.google.protobuf.ByteString |
getNormalizedNameBytes()
optional string normalizedName = 9; |
String |
getObjectID()
inherited from ExtractionObject
|
com.google.protobuf.ByteString |
getObjectIDBytes()
inherited from ExtractionObject
|
String |
getSubtype()
Implicit
uint32 sentence @see implicit in sentence
|
com.google.protobuf.ByteString |
getSubtypeBytes()
Implicit
uint32 sentence @see implicit in sentence
|
String |
getType()
optional string type = 4; |
com.google.protobuf.ByteString |
getTypeBytes()
optional string type = 4; |
boolean |
hasCorefID()
optional string corefID = 11; |
boolean |
hasExtentEnd()
optional uint32 extentEnd = 3; |
boolean |
hasExtentStart()
optional uint32 extentStart = 2; |
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() |
CoreNLPProtos.Entity.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
CoreNLPProtos.Entity.Builder |
mergeFrom(com.google.protobuf.Message other) |
CoreNLPProtos.Entity.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
CoreNLPProtos.Entity.Builder |
setCorefID(String value)
optional string corefID = 11; |
CoreNLPProtos.Entity.Builder |
setCorefIDBytes(com.google.protobuf.ByteString value)
optional string corefID = 11; |
CoreNLPProtos.Entity.Builder |
setExtentEnd(int value)
optional uint32 extentEnd = 3; |
CoreNLPProtos.Entity.Builder |
setExtentStart(int value)
optional uint32 extentStart = 2; |
CoreNLPProtos.Entity.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
CoreNLPProtos.Entity.Builder |
setHeadEnd(int value)
optional uint32 headEnd = 7; |
CoreNLPProtos.Entity.Builder |
setHeadStart(int value)
optional uint32 headStart = 6; |
CoreNLPProtos.Entity.Builder |
setHeadTokenIndex(int value)
optional uint32 headTokenIndex = 10; |
CoreNLPProtos.Entity.Builder |
setMentionType(String value)
optional string mentionType = 8; |
CoreNLPProtos.Entity.Builder |
setMentionTypeBytes(com.google.protobuf.ByteString value)
optional string mentionType = 8; |
CoreNLPProtos.Entity.Builder |
setNormalizedName(String value)
optional string normalizedName = 9; |
CoreNLPProtos.Entity.Builder |
setNormalizedNameBytes(com.google.protobuf.ByteString value)
optional string normalizedName = 9; |
CoreNLPProtos.Entity.Builder |
setObjectID(String value)
inherited from ExtractionObject
|
CoreNLPProtos.Entity.Builder |
setObjectIDBytes(com.google.protobuf.ByteString value)
inherited from ExtractionObject
|
CoreNLPProtos.Entity.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
CoreNLPProtos.Entity.Builder |
setSubtype(String value)
Implicit
uint32 sentence @see implicit in sentence
|
CoreNLPProtos.Entity.Builder |
setSubtypeBytes(com.google.protobuf.ByteString value)
Implicit
uint32 sentence @see implicit in sentence
|
CoreNLPProtos.Entity.Builder |
setType(String value)
optional string type = 4; |
CoreNLPProtos.Entity.Builder |
setTypeBytes(com.google.protobuf.ByteString value)
optional string type = 4; |
CoreNLPProtos.Entity.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
public CoreNLPProtos.Entity.Builder clear()
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
public CoreNLPProtos.Entity getDefaultInstanceForType()
public CoreNLPProtos.Entity build()
public CoreNLPProtos.Entity buildPartial()
public CoreNLPProtos.Entity.Builder clone()
public CoreNLPProtos.Entity.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
public CoreNLPProtos.Entity.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
public CoreNLPProtos.Entity.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
public CoreNLPProtos.Entity.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
public CoreNLPProtos.Entity.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
public CoreNLPProtos.Entity.Builder mergeFrom(com.google.protobuf.Message other)
public final boolean isInitialized()
public CoreNLPProtos.Entity.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic boolean hasHeadStart()
optional uint32 headStart = 6;hasHeadStart in interface CoreNLPProtos.EntityOrBuilderpublic int getHeadStart()
optional uint32 headStart = 6;getHeadStart in interface CoreNLPProtos.EntityOrBuilderpublic CoreNLPProtos.Entity.Builder setHeadStart(int value)
optional uint32 headStart = 6;public CoreNLPProtos.Entity.Builder clearHeadStart()
optional uint32 headStart = 6;public boolean hasHeadEnd()
optional uint32 headEnd = 7;hasHeadEnd in interface CoreNLPProtos.EntityOrBuilderpublic int getHeadEnd()
optional uint32 headEnd = 7;getHeadEnd in interface CoreNLPProtos.EntityOrBuilderpublic CoreNLPProtos.Entity.Builder setHeadEnd(int value)
optional uint32 headEnd = 7;public CoreNLPProtos.Entity.Builder clearHeadEnd()
optional uint32 headEnd = 7;public boolean hasMentionType()
optional string mentionType = 8;hasMentionType in interface CoreNLPProtos.EntityOrBuilderpublic 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 CoreNLPProtos.Entity.Builder setMentionType(String value)
optional string mentionType = 8;public CoreNLPProtos.Entity.Builder clearMentionType()
optional string mentionType = 8;public CoreNLPProtos.Entity.Builder setMentionTypeBytes(com.google.protobuf.ByteString value)
optional string mentionType = 8;public boolean hasNormalizedName()
optional string normalizedName = 9;hasNormalizedName in interface CoreNLPProtos.EntityOrBuilderpublic 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 CoreNLPProtos.Entity.Builder setNormalizedName(String value)
optional string normalizedName = 9;public CoreNLPProtos.Entity.Builder clearNormalizedName()
optional string normalizedName = 9;public CoreNLPProtos.Entity.Builder setNormalizedNameBytes(com.google.protobuf.ByteString value)
optional string normalizedName = 9;public boolean hasHeadTokenIndex()
optional uint32 headTokenIndex = 10;hasHeadTokenIndex in interface CoreNLPProtos.EntityOrBuilderpublic int getHeadTokenIndex()
optional uint32 headTokenIndex = 10;getHeadTokenIndex in interface CoreNLPProtos.EntityOrBuilderpublic CoreNLPProtos.Entity.Builder setHeadTokenIndex(int value)
optional uint32 headTokenIndex = 10;public CoreNLPProtos.Entity.Builder clearHeadTokenIndex()
optional uint32 headTokenIndex = 10;public boolean hasCorefID()
optional string corefID = 11;hasCorefID in interface CoreNLPProtos.EntityOrBuilderpublic 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 CoreNLPProtos.Entity.Builder setCorefID(String value)
optional string corefID = 11;public CoreNLPProtos.Entity.Builder clearCorefID()
optional string corefID = 11;public CoreNLPProtos.Entity.Builder setCorefIDBytes(com.google.protobuf.ByteString value)
optional string corefID = 11;public boolean hasObjectID()
inherited from ExtractionObject
optional string objectID = 1;hasObjectID in interface CoreNLPProtos.EntityOrBuilderpublic 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 CoreNLPProtos.Entity.Builder setObjectID(String value)
inherited from ExtractionObject
optional string objectID = 1;public CoreNLPProtos.Entity.Builder clearObjectID()
inherited from ExtractionObject
optional string objectID = 1;public CoreNLPProtos.Entity.Builder setObjectIDBytes(com.google.protobuf.ByteString value)
inherited from ExtractionObject
optional string objectID = 1;public boolean hasExtentStart()
optional uint32 extentStart = 2;hasExtentStart in interface CoreNLPProtos.EntityOrBuilderpublic int getExtentStart()
optional uint32 extentStart = 2;getExtentStart in interface CoreNLPProtos.EntityOrBuilderpublic CoreNLPProtos.Entity.Builder setExtentStart(int value)
optional uint32 extentStart = 2;public CoreNLPProtos.Entity.Builder clearExtentStart()
optional uint32 extentStart = 2;public boolean hasExtentEnd()
optional uint32 extentEnd = 3;hasExtentEnd in interface CoreNLPProtos.EntityOrBuilderpublic int getExtentEnd()
optional uint32 extentEnd = 3;getExtentEnd in interface CoreNLPProtos.EntityOrBuilderpublic CoreNLPProtos.Entity.Builder setExtentEnd(int value)
optional uint32 extentEnd = 3;public CoreNLPProtos.Entity.Builder clearExtentEnd()
optional uint32 extentEnd = 3;public boolean hasType()
optional string type = 4;hasType in interface CoreNLPProtos.EntityOrBuilderpublic 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 CoreNLPProtos.Entity.Builder setType(String value)
optional string type = 4;public CoreNLPProtos.Entity.Builder clearType()
optional string type = 4;public CoreNLPProtos.Entity.Builder setTypeBytes(com.google.protobuf.ByteString value)
optional string type = 4;public boolean hasSubtype()
Implicit
uint32 sentence @see implicit in sentence
optional string subtype = 5;hasSubtype in interface CoreNLPProtos.EntityOrBuilderpublic 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 CoreNLPProtos.Entity.Builder setSubtype(String value)
Implicit
uint32 sentence @see implicit in sentence
optional string subtype = 5;public CoreNLPProtos.Entity.Builder clearSubtype()
Implicit
uint32 sentence @see implicit in sentence
optional string subtype = 5;public CoreNLPProtos.Entity.Builder setSubtypeBytes(com.google.protobuf.ByteString value)
Implicit
uint32 sentence @see implicit in sentence
optional string subtype = 5;public final CoreNLPProtos.Entity.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
public final CoreNLPProtos.Entity.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)