Adds an attachment to the document's attachment map
Map of any arbitrary document attachments such as document creation time
Map of any arbitrary document attachments such as document creation time
Clears any internal state potentially constructed by the annotators
Clusters of coreferent mentions
Used to compare Documents.
Used to compare Documents.
a hash (Int) based primarily on the sentences, ignoring attachments
Retrieves the attachment with the given name
Retrieves keys to all attachments so that the entire collection can be read for purposes including but not limited to serialization.
Retrieves keys to all attachments so that the entire collection can be read for purposes including but not limited to serialization. If there are no attachments, that is attachments == None, an empty set is returned. This does not distinguish between None and Some(HashMap.empty), especially since the latter should not be possible because of the lazy initialization.
Unique id for this document, if any
Sets the document creation time using the CoreNLP format.
Sets the document creation time using the CoreNLP format. See useFixedDate here for more details: https://stanfordnlp.github.io/CoreNLP/ner.html#setting-document-date The DCT will impacts how Sentence.norms are generated for DATE expressions
Document creation time
The original text corresponding to this document, if it was preserved by the corresponding processor
Stores all annotations for one document. Written by: Mihai Surdeanu and Gus Hahn-Powell. Last Modified: Add apply method to copy Document.