public class SpanishDocument extends Document
impl, sentences, serializer| Modifier | Constructor and Description |
|---|---|
|
SpanishDocument(Annotation ann)
Convert a CoreNLP Annotation object to a Document.
|
|
SpanishDocument(CoreNLPProtos.Document proto)
Create a Document object from a read Protocol Buffer.
|
protected |
SpanishDocument(java.util.Properties props,
java.lang.String text)
Create a new Spanish document from the passed in text and the given properties.
|
|
SpanishDocument(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 |
runDepparse(java.util.Properties props) |
protected Document |
runLemma(java.util.Properties props)
No lemma annotator for Spanish -- 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, xmlMinifiedpublic SpanishDocument(java.lang.String text)
text - The text of the document.public SpanishDocument(Annotation ann)
ann - The CoreNLP Annotation object.public SpanishDocument(CoreNLPProtos.Document proto)
proto - The protocol buffer representing this document.Document.serialize()protected SpanishDocument(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)
protected Document runDepparse(java.util.Properties props)
public java.util.Map<java.lang.Integer,CorefChain> coref(java.util.Properties props)
Documentcoref in class Documentprops - The properties to use in the DeterministicCorefAnnotator.