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