public class CoNLL2002Writer extends Object
View.NER
view, since 2002 has only two columns, the token and the NER
label.Constructor and Description |
---|
CoNLL2002Writer() |
Modifier and Type | Method and Description |
---|---|
static void |
writeViewInCoNLL2002Format(View view,
TextAnnotation ta,
String filename)
Pass in the view, text annotation and the filename, it will produce the labels in the view to
a file named filename in CoNLL2002 format.
|
static void |
writeViewInCoNLL2003Format(View view,
TextAnnotation ta,
String filename)
Pass in the view, text annotation and the filename, it will produce the labels in the view to
a file named filename in CoNLL2003 format.
|
public static void writeViewInCoNLL2002Format(View view, TextAnnotation ta, String filename) throws IOException
view
- the view with the labels to produce.ta
- the text annotation.filename
- the filename.IOException
public static void writeViewInCoNLL2003Format(View view, TextAnnotation ta, String filename) throws IOException
view
- the view with the labels to produce.ta
- the text annotation.filename
- the filename output file name.IOException
Copyright © 2017. All rights reserved.