public class CoNLLOutputter extends AnnotationOutputter
Field Number | Field Name | Description |
1 | ID (idx) | Token Counter, starting at 1 for each new sentence. |
2 | FORM (word) | Word form or punctuation symbol. |
3 | LEMMA (lemma) | Lemma of word form, or an underscore if not available. |
4 | POSTAG (pos) | Fine-grained part-of-speech tag, or underscore if not available. |
5 | NER (ner) | Named Entity tag, or underscore if not available. |
6 | HEAD (headidx) | Head of the current token, which is either a value of ID or zero ('0'). This is underscore if not available. |
7 | DEPREL (deprel) | Dependency relation to the HEAD, or underscore if not available. |
AnnotationOutputter.Options
Constructor and Description |
---|
CoNLLOutputter() |
Modifier and Type | Method and Description |
---|---|
static void |
conllPrint(Annotation annotation,
java.io.OutputStream os) |
static void |
conllPrint(Annotation annotation,
java.io.OutputStream os,
AnnotationOutputter.Options options) |
static void |
conllPrint(Annotation annotation,
java.io.OutputStream os,
StanfordCoreNLP pipeline) |
void |
print(Annotation doc,
java.io.OutputStream target,
AnnotationOutputter.Options options)
Print an Annotation to an output stream.
|
getOptions, print, print, print, print, print
public void print(Annotation doc, java.io.OutputStream target, AnnotationOutputter.Options options) throws java.io.IOException
print
in class AnnotationOutputter
doc
- target
- options
- java.io.IOException
public static void conllPrint(Annotation annotation, java.io.OutputStream os) throws java.io.IOException
java.io.IOException
public static void conllPrint(Annotation annotation, java.io.OutputStream os, StanfordCoreNLP pipeline) throws java.io.IOException
java.io.IOException
public static void conllPrint(Annotation annotation, java.io.OutputStream os, AnnotationOutputter.Options options) throws java.io.IOException
java.io.IOException