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

Popular posts from this blog

javascript - Laravel datatable invalid JSON response -

java - Exception in thread "main" org.springframework.context.ApplicationContextException: Unable to start embedded container; -

sql server 2008 - My Sql Code Get An Error Of Msg 245, Level 16, State 1, Line 1 Conversion failed when converting the varchar value '8:45 AM' to data type int -