public class CoreDocument
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected Annotation |
annotationDocument |
Constructor and Description |
---|
CoreDocument(Annotation annotation) |
CoreDocument(java.lang.String documentText) |
Modifier and Type | Method and Description |
---|---|
Annotation |
annotation()
provide access to the underlying annotation if needed
|
java.util.Map<java.lang.Integer,CorefChain> |
corefChains()
coref info
|
java.lang.String |
docDate()
return the doc date of this doc
|
java.lang.String |
docID()
return the doc id of this doc
|
java.util.List<CoreEntityMention> |
entityMentions()
the list of entity mentions in this document
|
java.util.List<CoreQuote> |
quotes()
quotes
|
java.util.List<CoreSentence> |
sentences()
the list of sentences in this document
|
java.lang.String |
text()
return the full text of the doc
|
java.util.List<CoreLabel> |
tokens()
return the full token list for this doc
|
java.lang.String |
toString() |
void |
wrapAnnotations()
complete the wrapping process post annotation by a pipeline
|
protected Annotation annotationDocument
public CoreDocument(java.lang.String documentText)
public CoreDocument(Annotation annotation)
public void wrapAnnotations()
public Annotation annotation()
public java.lang.String docID()
public java.lang.String docDate()
public java.lang.String text()
public java.util.List<CoreLabel> tokens()
public java.util.List<CoreSentence> sentences()
public java.util.List<CoreEntityMention> entityMentions()
public java.util.Map<java.lang.Integer,CorefChain> corefChains()
public java.util.List<CoreQuote> quotes()
public java.lang.String toString()
toString
in class java.lang.Object