public class GermanDocument extends Document
impl, sentences, serializer
Modifier | Constructor and Description |
---|---|
|
GermanDocument(Annotation ann)
Convert a CoreNLP Annotation object to a Document.
|
|
GermanDocument(CoreNLPProtos.Document proto)
Create a Document object from a read Protocol Buffer.
|
protected |
GermanDocument(java.util.Properties props,
java.lang.String text)
Create a new German document from the passed in text and the given properties.
|
|
GermanDocument(java.lang.String text)
Create a new document from the passed in text.
|
Modifier and Type | Method and Description |
---|---|
java.util.Map<java.lang.Integer,CorefChain> |
coref(java.util.Properties props)
Returns the coref chains in the document.
|
protected Document |
runLemma(java.util.Properties props)
No lemma annotator for German -- set the lemma to be the word.
|
protected Document |
runSentiment(java.util.Properties props) |
asAnnotation, cased, caseless, coref, deserialize, docid, equals, hashCode, json, jsonMinified, sentence, sentence, sentences, sentences, sentences, serialize, serialize, setBackend, setDocid, text, toString, useServer, useServer, useServer, useServer, xml, xmlMinified
public GermanDocument(java.lang.String text)
text
- The text of the document.public GermanDocument(Annotation ann)
ann
- The CoreNLP Annotation object.public GermanDocument(CoreNLPProtos.Document proto)
proto
- The protocol buffer representing this document.Document.serialize()
protected GermanDocument(java.util.Properties props, java.lang.String text)
text
- The text of the document.protected Document runLemma(java.util.Properties props)
Document.runLemma(Properties)
protected Document runSentiment(java.util.Properties props)
public java.util.Map<java.lang.Integer,CorefChain> coref(java.util.Properties props)
Document
coref
in class Document
props
- The properties to use in the DeterministicCorefAnnotator
.