public static final class CoreNLPProtos.Document extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<CoreNLPProtos.Document> implements CoreNLPProtos.DocumentOrBuilder
A document; that is, the equivalent of an Annotation.Protobuf type
edu.stanford.nlp.pipeline.Document
Modifier and Type | Class and Description |
---|---|
static class |
CoreNLPProtos.Document.Builder
A document; that is, the equivalent of an Annotation.
|
com.google.protobuf.GeneratedMessageV3.ExtendableMessage.ExtensionWriter
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 |
CALENDAR_FIELD_NUMBER |
static int |
CHARACTER_FIELD_NUMBER |
static int |
COREFCHAIN_FIELD_NUMBER |
static int |
COREFMENTIONTOENTITYMENTIONMAPPINGS_FIELD_NUMBER |
static int |
DOCDATE_FIELD_NUMBER |
static int |
DOCID_FIELD_NUMBER |
static int |
ENTITYMENTIONTOCOREFMENTIONMAPPINGS_FIELD_NUMBER |
static int |
HASCOREFANNOTATION_FIELD_NUMBER |
static int |
HASCOREFMENTIONANNOTATION_FIELD_NUMBER |
static int |
HASENTITYMENTIONSANNOTATION_FIELD_NUMBER |
static int |
MENTIONS_FIELD_NUMBER |
static int |
MENTIONSFORCOREF_FIELD_NUMBER |
static com.google.protobuf.Parser<CoreNLPProtos.Document> |
PARSER
Deprecated.
|
static int |
QUOTE_FIELD_NUMBER |
static int |
SECTIONS_FIELD_NUMBER |
static int |
SENTENCE_FIELD_NUMBER |
static int |
SENTENCELESSTOKEN_FIELD_NUMBER |
static int |
TEXT_FIELD_NUMBER |
static int |
XMLDOC_FIELD_NUMBER |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
long |
getCalendar()
optional uint64 calendar = 8; |
CoreNLPProtos.Token |
getCharacter(int index)
repeated .edu.stanford.nlp.pipeline.Token character = 10; |
int |
getCharacterCount()
repeated .edu.stanford.nlp.pipeline.Token character = 10; |
java.util.List<CoreNLPProtos.Token> |
getCharacterList()
repeated .edu.stanford.nlp.pipeline.Token character = 10; |
CoreNLPProtos.TokenOrBuilder |
getCharacterOrBuilder(int index)
repeated .edu.stanford.nlp.pipeline.Token character = 10; |
java.util.List<? extends CoreNLPProtos.TokenOrBuilder> |
getCharacterOrBuilderList()
repeated .edu.stanford.nlp.pipeline.Token character = 10; |
CoreNLPProtos.CorefChain |
getCorefChain(int index)
repeated .edu.stanford.nlp.pipeline.CorefChain corefChain = 3; |
int |
getCorefChainCount()
repeated .edu.stanford.nlp.pipeline.CorefChain corefChain = 3; |
java.util.List<CoreNLPProtos.CorefChain> |
getCorefChainList()
repeated .edu.stanford.nlp.pipeline.CorefChain corefChain = 3; |
CoreNLPProtos.CorefChainOrBuilder |
getCorefChainOrBuilder(int index)
repeated .edu.stanford.nlp.pipeline.CorefChain corefChain = 3; |
java.util.List<? extends CoreNLPProtos.CorefChainOrBuilder> |
getCorefChainOrBuilderList()
repeated .edu.stanford.nlp.pipeline.CorefChain corefChain = 3; |
int |
getCorefMentionToEntityMentionMappings(int index)
repeated int32 corefMentionToEntityMentionMappings = 17; |
int |
getCorefMentionToEntityMentionMappingsCount()
repeated int32 corefMentionToEntityMentionMappings = 17; |
java.util.List<java.lang.Integer> |
getCorefMentionToEntityMentionMappingsList()
repeated int32 corefMentionToEntityMentionMappings = 17; |
static CoreNLPProtos.Document |
getDefaultInstance() |
CoreNLPProtos.Document |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
java.lang.String |
getDocDate()
optional string docDate = 7; |
com.google.protobuf.ByteString |
getDocDateBytes()
optional string docDate = 7; |
java.lang.String |
getDocID()
optional string docID = 4; |
com.google.protobuf.ByteString |
getDocIDBytes()
optional string docID = 4; |
int |
getEntityMentionToCorefMentionMappings(int index)
repeated int32 entityMentionToCorefMentionMappings = 18; |
int |
getEntityMentionToCorefMentionMappingsCount()
repeated int32 entityMentionToCorefMentionMappings = 18; |
java.util.List<java.lang.Integer> |
getEntityMentionToCorefMentionMappingsList()
repeated int32 entityMentionToCorefMentionMappings = 18; |
boolean |
getHasCorefAnnotation()
optional bool hasCorefAnnotation = 16; |
boolean |
getHasCorefMentionAnnotation()
optional bool hasCorefMentionAnnotation = 15; |
boolean |
getHasEntityMentionsAnnotation()
used to differentiate between null and empty list
|
CoreNLPProtos.NERMention |
getMentions(int index)
This field is for entity mentions across the document.
|
int |
getMentionsCount()
This field is for entity mentions across the document.
|
CoreNLPProtos.Mention |
getMentionsForCoref(int index)
coref mentions for entire document *
|
int |
getMentionsForCorefCount()
coref mentions for entire document *
|
java.util.List<CoreNLPProtos.Mention> |
getMentionsForCorefList()
coref mentions for entire document *
|
CoreNLPProtos.MentionOrBuilder |
getMentionsForCorefOrBuilder(int index)
coref mentions for entire document *
|
java.util.List<? extends CoreNLPProtos.MentionOrBuilder> |
getMentionsForCorefOrBuilderList()
coref mentions for entire document *
|
java.util.List<CoreNLPProtos.NERMention> |
getMentionsList()
This field is for entity mentions across the document.
|
CoreNLPProtos.NERMentionOrBuilder |
getMentionsOrBuilder(int index)
This field is for entity mentions across the document.
|
java.util.List<? extends CoreNLPProtos.NERMentionOrBuilder> |
getMentionsOrBuilderList()
This field is for entity mentions across the document.
|
com.google.protobuf.Parser<CoreNLPProtos.Document> |
getParserForType() |
CoreNLPProtos.Quote |
getQuote(int index)
repeated .edu.stanford.nlp.pipeline.Quote quote = 6; |
int |
getQuoteCount()
repeated .edu.stanford.nlp.pipeline.Quote quote = 6; |
java.util.List<CoreNLPProtos.Quote> |
getQuoteList()
repeated .edu.stanford.nlp.pipeline.Quote quote = 6; |
CoreNLPProtos.QuoteOrBuilder |
getQuoteOrBuilder(int index)
repeated .edu.stanford.nlp.pipeline.Quote quote = 6; |
java.util.List<? extends CoreNLPProtos.QuoteOrBuilder> |
getQuoteOrBuilderList()
repeated .edu.stanford.nlp.pipeline.Quote quote = 6; |
CoreNLPProtos.Section |
getSections(int index)
repeated .edu.stanford.nlp.pipeline.Section sections = 12; |
int |
getSectionsCount()
repeated .edu.stanford.nlp.pipeline.Section sections = 12; |
java.util.List<CoreNLPProtos.Section> |
getSectionsList()
repeated .edu.stanford.nlp.pipeline.Section sections = 12; |
CoreNLPProtos.SectionOrBuilder |
getSectionsOrBuilder(int index)
repeated .edu.stanford.nlp.pipeline.Section sections = 12; |
java.util.List<? extends CoreNLPProtos.SectionOrBuilder> |
getSectionsOrBuilderList()
repeated .edu.stanford.nlp.pipeline.Section sections = 12; |
CoreNLPProtos.Sentence |
getSentence(int index)
repeated .edu.stanford.nlp.pipeline.Sentence sentence = 2; |
int |
getSentenceCount()
repeated .edu.stanford.nlp.pipeline.Sentence sentence = 2; |
CoreNLPProtos.Token |
getSentencelessToken(int index)
A peculiar field, for the corner case when a Document is
serialized without any sentences.
|
int |
getSentencelessTokenCount()
A peculiar field, for the corner case when a Document is
serialized without any sentences.
|
java.util.List<CoreNLPProtos.Token> |
getSentencelessTokenList()
A peculiar field, for the corner case when a Document is
serialized without any sentences.
|
CoreNLPProtos.TokenOrBuilder |
getSentencelessTokenOrBuilder(int index)
A peculiar field, for the corner case when a Document is
serialized without any sentences.
|
java.util.List<? extends CoreNLPProtos.TokenOrBuilder> |
getSentencelessTokenOrBuilderList()
A peculiar field, for the corner case when a Document is
serialized without any sentences.
|
java.util.List<CoreNLPProtos.Sentence> |
getSentenceList()
repeated .edu.stanford.nlp.pipeline.Sentence sentence = 2; |
CoreNLPProtos.SentenceOrBuilder |
getSentenceOrBuilder(int index)
repeated .edu.stanford.nlp.pipeline.Sentence sentence = 2; |
java.util.List<? extends CoreNLPProtos.SentenceOrBuilder> |
getSentenceOrBuilderList()
repeated .edu.stanford.nlp.pipeline.Sentence sentence = 2; |
int |
getSerializedSize() |
java.lang.String |
getText()
required string text = 1; |
com.google.protobuf.ByteString |
getTextBytes()
required string text = 1; |
com.google.protobuf.UnknownFieldSet |
getUnknownFields() |
boolean |
getXmlDoc()
xml information
|
boolean |
hasCalendar()
optional uint64 calendar = 8; |
boolean |
hasDocDate()
optional string docDate = 7; |
boolean |
hasDocID()
optional string docID = 4; |
boolean |
hasHasCorefAnnotation()
optional bool hasCorefAnnotation = 16; |
boolean |
hasHasCorefMentionAnnotation()
optional bool hasCorefMentionAnnotation = 15; |
boolean |
hasHasEntityMentionsAnnotation()
used to differentiate between null and empty list
|
int |
hashCode() |
boolean |
hasText()
required string text = 1; |
boolean |
hasXmlDoc()
xml information
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static CoreNLPProtos.Document.Builder |
newBuilder() |
static CoreNLPProtos.Document.Builder |
newBuilder(CoreNLPProtos.Document prototype) |
CoreNLPProtos.Document.Builder |
newBuilderForType() |
protected CoreNLPProtos.Document.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
protected java.lang.Object |
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) |
static CoreNLPProtos.Document |
parseDelimitedFrom(java.io.InputStream input) |
static CoreNLPProtos.Document |
parseDelimitedFrom(java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static CoreNLPProtos.Document |
parseFrom(byte[] data) |
static CoreNLPProtos.Document |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static CoreNLPProtos.Document |
parseFrom(java.nio.ByteBuffer data) |
static CoreNLPProtos.Document |
parseFrom(java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static CoreNLPProtos.Document |
parseFrom(com.google.protobuf.ByteString data) |
static CoreNLPProtos.Document |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static CoreNLPProtos.Document |
parseFrom(com.google.protobuf.CodedInputStream input) |
static CoreNLPProtos.Document |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static CoreNLPProtos.Document |
parseFrom(java.io.InputStream input) |
static CoreNLPProtos.Document |
parseFrom(java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<CoreNLPProtos.Document> |
parser() |
CoreNLPProtos.Document.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
extensionsAreInitialized, extensionsSerializedSize, extensionsSerializedSizeAsMessageSet, getAllFields, getAllFieldsRaw, getExtension, getExtension, getExtension, getExtension, getExtension, getExtension, getExtensionCount, getExtensionCount, getExtensionCount, getExtensionFields, getField, getRepeatedField, getRepeatedFieldCount, hasExtension, hasExtension, hasExtension, hasField, makeExtensionsImmutable, newExtensionWriter, newMessageSetExtensionWriter, parseUnknownField, parseUnknownFieldProto3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getDescriptorForType, getOneofFieldDescriptor, hasOneof, internalGetMapField, isStringEmpty, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, 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
getExtension, getExtension, getExtension, getExtension, getExtension, getExtension, getExtensionCount, getExtensionCount, getExtensionCount, hasExtension, hasExtension, hasExtension
public static final int TEXT_FIELD_NUMBER
public static final int SENTENCE_FIELD_NUMBER
public static final int COREFCHAIN_FIELD_NUMBER
public static final int DOCID_FIELD_NUMBER
public static final int DOCDATE_FIELD_NUMBER
public static final int CALENDAR_FIELD_NUMBER
public static final int SENTENCELESSTOKEN_FIELD_NUMBER
public static final int CHARACTER_FIELD_NUMBER
public static final int QUOTE_FIELD_NUMBER
public static final int MENTIONS_FIELD_NUMBER
public static final int HASENTITYMENTIONSANNOTATION_FIELD_NUMBER
public static final int XMLDOC_FIELD_NUMBER
public static final int SECTIONS_FIELD_NUMBER
public static final int MENTIONSFORCOREF_FIELD_NUMBER
public static final int HASCOREFMENTIONANNOTATION_FIELD_NUMBER
public static final int HASCOREFANNOTATION_FIELD_NUMBER
public static final int COREFMENTIONTOENTITYMENTIONMAPPINGS_FIELD_NUMBER
public static final int ENTITYMENTIONTOCOREFMENTIONMAPPINGS_FIELD_NUMBER
@Deprecated public static final com.google.protobuf.Parser<CoreNLPProtos.Document> 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 hasText()
required string text = 1;
hasText
in interface CoreNLPProtos.DocumentOrBuilder
public java.lang.String getText()
required string text = 1;
getText
in interface CoreNLPProtos.DocumentOrBuilder
public com.google.protobuf.ByteString getTextBytes()
required string text = 1;
getTextBytes
in interface CoreNLPProtos.DocumentOrBuilder
public java.util.List<CoreNLPProtos.Sentence> getSentenceList()
repeated .edu.stanford.nlp.pipeline.Sentence sentence = 2;
getSentenceList
in interface CoreNLPProtos.DocumentOrBuilder
public java.util.List<? extends CoreNLPProtos.SentenceOrBuilder> getSentenceOrBuilderList()
repeated .edu.stanford.nlp.pipeline.Sentence sentence = 2;
getSentenceOrBuilderList
in interface CoreNLPProtos.DocumentOrBuilder
public int getSentenceCount()
repeated .edu.stanford.nlp.pipeline.Sentence sentence = 2;
getSentenceCount
in interface CoreNLPProtos.DocumentOrBuilder
public CoreNLPProtos.Sentence getSentence(int index)
repeated .edu.stanford.nlp.pipeline.Sentence sentence = 2;
getSentence
in interface CoreNLPProtos.DocumentOrBuilder
public CoreNLPProtos.SentenceOrBuilder getSentenceOrBuilder(int index)
repeated .edu.stanford.nlp.pipeline.Sentence sentence = 2;
getSentenceOrBuilder
in interface CoreNLPProtos.DocumentOrBuilder
public java.util.List<CoreNLPProtos.CorefChain> getCorefChainList()
repeated .edu.stanford.nlp.pipeline.CorefChain corefChain = 3;
getCorefChainList
in interface CoreNLPProtos.DocumentOrBuilder
public java.util.List<? extends CoreNLPProtos.CorefChainOrBuilder> getCorefChainOrBuilderList()
repeated .edu.stanford.nlp.pipeline.CorefChain corefChain = 3;
getCorefChainOrBuilderList
in interface CoreNLPProtos.DocumentOrBuilder
public int getCorefChainCount()
repeated .edu.stanford.nlp.pipeline.CorefChain corefChain = 3;
getCorefChainCount
in interface CoreNLPProtos.DocumentOrBuilder
public CoreNLPProtos.CorefChain getCorefChain(int index)
repeated .edu.stanford.nlp.pipeline.CorefChain corefChain = 3;
getCorefChain
in interface CoreNLPProtos.DocumentOrBuilder
public CoreNLPProtos.CorefChainOrBuilder getCorefChainOrBuilder(int index)
repeated .edu.stanford.nlp.pipeline.CorefChain corefChain = 3;
getCorefChainOrBuilder
in interface CoreNLPProtos.DocumentOrBuilder
public boolean hasDocID()
optional string docID = 4;
hasDocID
in interface CoreNLPProtos.DocumentOrBuilder
public java.lang.String getDocID()
optional string docID = 4;
getDocID
in interface CoreNLPProtos.DocumentOrBuilder
public com.google.protobuf.ByteString getDocIDBytes()
optional string docID = 4;
getDocIDBytes
in interface CoreNLPProtos.DocumentOrBuilder
public boolean hasDocDate()
optional string docDate = 7;
hasDocDate
in interface CoreNLPProtos.DocumentOrBuilder
public java.lang.String getDocDate()
optional string docDate = 7;
getDocDate
in interface CoreNLPProtos.DocumentOrBuilder
public com.google.protobuf.ByteString getDocDateBytes()
optional string docDate = 7;
getDocDateBytes
in interface CoreNLPProtos.DocumentOrBuilder
public boolean hasCalendar()
optional uint64 calendar = 8;
hasCalendar
in interface CoreNLPProtos.DocumentOrBuilder
public long getCalendar()
optional uint64 calendar = 8;
getCalendar
in interface CoreNLPProtos.DocumentOrBuilder
public java.util.List<CoreNLPProtos.Token> getSentencelessTokenList()
A peculiar field, for the corner case when a Document is serialized without any sentences. Otherwise
repeated .edu.stanford.nlp.pipeline.Token sentencelessToken = 5;
getSentencelessTokenList
in interface CoreNLPProtos.DocumentOrBuilder
public java.util.List<? extends CoreNLPProtos.TokenOrBuilder> getSentencelessTokenOrBuilderList()
A peculiar field, for the corner case when a Document is serialized without any sentences. Otherwise
repeated .edu.stanford.nlp.pipeline.Token sentencelessToken = 5;
getSentencelessTokenOrBuilderList
in interface CoreNLPProtos.DocumentOrBuilder
public int getSentencelessTokenCount()
A peculiar field, for the corner case when a Document is serialized without any sentences. Otherwise
repeated .edu.stanford.nlp.pipeline.Token sentencelessToken = 5;
getSentencelessTokenCount
in interface CoreNLPProtos.DocumentOrBuilder
public CoreNLPProtos.Token getSentencelessToken(int index)
A peculiar field, for the corner case when a Document is serialized without any sentences. Otherwise
repeated .edu.stanford.nlp.pipeline.Token sentencelessToken = 5;
getSentencelessToken
in interface CoreNLPProtos.DocumentOrBuilder
public CoreNLPProtos.TokenOrBuilder getSentencelessTokenOrBuilder(int index)
A peculiar field, for the corner case when a Document is serialized without any sentences. Otherwise
repeated .edu.stanford.nlp.pipeline.Token sentencelessToken = 5;
getSentencelessTokenOrBuilder
in interface CoreNLPProtos.DocumentOrBuilder
public java.util.List<CoreNLPProtos.Token> getCharacterList()
repeated .edu.stanford.nlp.pipeline.Token character = 10;
getCharacterList
in interface CoreNLPProtos.DocumentOrBuilder
public java.util.List<? extends CoreNLPProtos.TokenOrBuilder> getCharacterOrBuilderList()
repeated .edu.stanford.nlp.pipeline.Token character = 10;
getCharacterOrBuilderList
in interface CoreNLPProtos.DocumentOrBuilder
public int getCharacterCount()
repeated .edu.stanford.nlp.pipeline.Token character = 10;
getCharacterCount
in interface CoreNLPProtos.DocumentOrBuilder
public CoreNLPProtos.Token getCharacter(int index)
repeated .edu.stanford.nlp.pipeline.Token character = 10;
getCharacter
in interface CoreNLPProtos.DocumentOrBuilder
public CoreNLPProtos.TokenOrBuilder getCharacterOrBuilder(int index)
repeated .edu.stanford.nlp.pipeline.Token character = 10;
getCharacterOrBuilder
in interface CoreNLPProtos.DocumentOrBuilder
public java.util.List<CoreNLPProtos.Quote> getQuoteList()
repeated .edu.stanford.nlp.pipeline.Quote quote = 6;
getQuoteList
in interface CoreNLPProtos.DocumentOrBuilder
public java.util.List<? extends CoreNLPProtos.QuoteOrBuilder> getQuoteOrBuilderList()
repeated .edu.stanford.nlp.pipeline.Quote quote = 6;
getQuoteOrBuilderList
in interface CoreNLPProtos.DocumentOrBuilder
public int getQuoteCount()
repeated .edu.stanford.nlp.pipeline.Quote quote = 6;
getQuoteCount
in interface CoreNLPProtos.DocumentOrBuilder
public CoreNLPProtos.Quote getQuote(int index)
repeated .edu.stanford.nlp.pipeline.Quote quote = 6;
getQuote
in interface CoreNLPProtos.DocumentOrBuilder
public CoreNLPProtos.QuoteOrBuilder getQuoteOrBuilder(int index)
repeated .edu.stanford.nlp.pipeline.Quote quote = 6;
getQuoteOrBuilder
in interface CoreNLPProtos.DocumentOrBuilder
public java.util.List<CoreNLPProtos.NERMention> getMentionsList()
This field is for entity mentions across the document.
repeated .edu.stanford.nlp.pipeline.NERMention mentions = 9;
getMentionsList
in interface CoreNLPProtos.DocumentOrBuilder
public java.util.List<? extends CoreNLPProtos.NERMentionOrBuilder> getMentionsOrBuilderList()
This field is for entity mentions across the document.
repeated .edu.stanford.nlp.pipeline.NERMention mentions = 9;
getMentionsOrBuilderList
in interface CoreNLPProtos.DocumentOrBuilder
public int getMentionsCount()
This field is for entity mentions across the document.
repeated .edu.stanford.nlp.pipeline.NERMention mentions = 9;
getMentionsCount
in interface CoreNLPProtos.DocumentOrBuilder
public CoreNLPProtos.NERMention getMentions(int index)
This field is for entity mentions across the document.
repeated .edu.stanford.nlp.pipeline.NERMention mentions = 9;
getMentions
in interface CoreNLPProtos.DocumentOrBuilder
public CoreNLPProtos.NERMentionOrBuilder getMentionsOrBuilder(int index)
This field is for entity mentions across the document.
repeated .edu.stanford.nlp.pipeline.NERMention mentions = 9;
getMentionsOrBuilder
in interface CoreNLPProtos.DocumentOrBuilder
public boolean hasHasEntityMentionsAnnotation()
used to differentiate between null and empty list
optional bool hasEntityMentionsAnnotation = 13;
hasHasEntityMentionsAnnotation
in interface CoreNLPProtos.DocumentOrBuilder
public boolean getHasEntityMentionsAnnotation()
used to differentiate between null and empty list
optional bool hasEntityMentionsAnnotation = 13;
getHasEntityMentionsAnnotation
in interface CoreNLPProtos.DocumentOrBuilder
public boolean hasXmlDoc()
xml information
optional bool xmlDoc = 11;
hasXmlDoc
in interface CoreNLPProtos.DocumentOrBuilder
public boolean getXmlDoc()
xml information
optional bool xmlDoc = 11;
getXmlDoc
in interface CoreNLPProtos.DocumentOrBuilder
public java.util.List<CoreNLPProtos.Section> getSectionsList()
repeated .edu.stanford.nlp.pipeline.Section sections = 12;
getSectionsList
in interface CoreNLPProtos.DocumentOrBuilder
public java.util.List<? extends CoreNLPProtos.SectionOrBuilder> getSectionsOrBuilderList()
repeated .edu.stanford.nlp.pipeline.Section sections = 12;
getSectionsOrBuilderList
in interface CoreNLPProtos.DocumentOrBuilder
public int getSectionsCount()
repeated .edu.stanford.nlp.pipeline.Section sections = 12;
getSectionsCount
in interface CoreNLPProtos.DocumentOrBuilder
public CoreNLPProtos.Section getSections(int index)
repeated .edu.stanford.nlp.pipeline.Section sections = 12;
getSections
in interface CoreNLPProtos.DocumentOrBuilder
public CoreNLPProtos.SectionOrBuilder getSectionsOrBuilder(int index)
repeated .edu.stanford.nlp.pipeline.Section sections = 12;
getSectionsOrBuilder
in interface CoreNLPProtos.DocumentOrBuilder
public java.util.List<CoreNLPProtos.Mention> getMentionsForCorefList()
coref mentions for entire document *
repeated .edu.stanford.nlp.pipeline.Mention mentionsForCoref = 14;
getMentionsForCorefList
in interface CoreNLPProtos.DocumentOrBuilder
public java.util.List<? extends CoreNLPProtos.MentionOrBuilder> getMentionsForCorefOrBuilderList()
coref mentions for entire document *
repeated .edu.stanford.nlp.pipeline.Mention mentionsForCoref = 14;
getMentionsForCorefOrBuilderList
in interface CoreNLPProtos.DocumentOrBuilder
public int getMentionsForCorefCount()
coref mentions for entire document *
repeated .edu.stanford.nlp.pipeline.Mention mentionsForCoref = 14;
getMentionsForCorefCount
in interface CoreNLPProtos.DocumentOrBuilder
public CoreNLPProtos.Mention getMentionsForCoref(int index)
coref mentions for entire document *
repeated .edu.stanford.nlp.pipeline.Mention mentionsForCoref = 14;
getMentionsForCoref
in interface CoreNLPProtos.DocumentOrBuilder
public CoreNLPProtos.MentionOrBuilder getMentionsForCorefOrBuilder(int index)
coref mentions for entire document *
repeated .edu.stanford.nlp.pipeline.Mention mentionsForCoref = 14;
getMentionsForCorefOrBuilder
in interface CoreNLPProtos.DocumentOrBuilder
public boolean hasHasCorefMentionAnnotation()
optional bool hasCorefMentionAnnotation = 15;
hasHasCorefMentionAnnotation
in interface CoreNLPProtos.DocumentOrBuilder
public boolean getHasCorefMentionAnnotation()
optional bool hasCorefMentionAnnotation = 15;
getHasCorefMentionAnnotation
in interface CoreNLPProtos.DocumentOrBuilder
public boolean hasHasCorefAnnotation()
optional bool hasCorefAnnotation = 16;
hasHasCorefAnnotation
in interface CoreNLPProtos.DocumentOrBuilder
public boolean getHasCorefAnnotation()
optional bool hasCorefAnnotation = 16;
getHasCorefAnnotation
in interface CoreNLPProtos.DocumentOrBuilder
public java.util.List<java.lang.Integer> getCorefMentionToEntityMentionMappingsList()
repeated int32 corefMentionToEntityMentionMappings = 17;
getCorefMentionToEntityMentionMappingsList
in interface CoreNLPProtos.DocumentOrBuilder
public int getCorefMentionToEntityMentionMappingsCount()
repeated int32 corefMentionToEntityMentionMappings = 17;
getCorefMentionToEntityMentionMappingsCount
in interface CoreNLPProtos.DocumentOrBuilder
public int getCorefMentionToEntityMentionMappings(int index)
repeated int32 corefMentionToEntityMentionMappings = 17;
getCorefMentionToEntityMentionMappings
in interface CoreNLPProtos.DocumentOrBuilder
index
- The index of the element to return.public java.util.List<java.lang.Integer> getEntityMentionToCorefMentionMappingsList()
repeated int32 entityMentionToCorefMentionMappings = 18;
getEntityMentionToCorefMentionMappingsList
in interface CoreNLPProtos.DocumentOrBuilder
public int getEntityMentionToCorefMentionMappingsCount()
repeated int32 entityMentionToCorefMentionMappings = 18;
getEntityMentionToCorefMentionMappingsCount
in interface CoreNLPProtos.DocumentOrBuilder
public int getEntityMentionToCorefMentionMappings(int index)
repeated int32 entityMentionToCorefMentionMappings = 18;
getEntityMentionToCorefMentionMappings
in interface CoreNLPProtos.DocumentOrBuilder
index
- The index of the element to return.public final boolean isInitialized()
isInitialized
in interface com.google.protobuf.MessageLiteOrBuilder
isInitialized
in class com.google.protobuf.GeneratedMessageV3.ExtendableMessage<CoreNLPProtos.Document>
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.Document parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static CoreNLPProtos.Document parseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static CoreNLPProtos.Document parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static CoreNLPProtos.Document parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static CoreNLPProtos.Document parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static CoreNLPProtos.Document parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static CoreNLPProtos.Document parseFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOException
public static CoreNLPProtos.Document parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
public static CoreNLPProtos.Document parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOException
public static CoreNLPProtos.Document parseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
public static CoreNLPProtos.Document parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException
java.io.IOException
public static CoreNLPProtos.Document parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
public CoreNLPProtos.Document.Builder newBuilderForType()
newBuilderForType
in interface com.google.protobuf.Message
newBuilderForType
in interface com.google.protobuf.MessageLite
public static CoreNLPProtos.Document.Builder newBuilder()
public static CoreNLPProtos.Document.Builder newBuilder(CoreNLPProtos.Document prototype)
public CoreNLPProtos.Document.Builder toBuilder()
toBuilder
in interface com.google.protobuf.Message
toBuilder
in interface com.google.protobuf.MessageLite
protected CoreNLPProtos.Document.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType
in class com.google.protobuf.GeneratedMessageV3
public static CoreNLPProtos.Document getDefaultInstance()
public static com.google.protobuf.Parser<CoreNLPProtos.Document> parser()
public com.google.protobuf.Parser<CoreNLPProtos.Document> getParserForType()
getParserForType
in interface com.google.protobuf.Message
getParserForType
in interface com.google.protobuf.MessageLite
getParserForType
in class com.google.protobuf.GeneratedMessageV3
public CoreNLPProtos.Document getDefaultInstanceForType()
getDefaultInstanceForType
in interface com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<CoreNLPProtos.Document>
getDefaultInstanceForType
in interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType
in interface com.google.protobuf.MessageOrBuilder