java - How can I load a .conll file into an Annotation object with Corenlp? -
i have files outputted corenlp in .conll
format, , want deserialize them annotation
object. corenlp provide conll-x documentreader
method transform .conll
file annotation
object or have create own documentreader?
you can try tsvsentenceiterator, reads sentences conll-like formatted tsv file.
but, note number of annotations hanging off of annotation object far more number of columns in conll file (e.g., character offsets, etc.), , serialization wouldn't lossless , may have unexpected behavior if want keep annotating object. not 1 of officially supported lossless serialization strategies.
Comments
Post a Comment