Stanford POS Tagger: How to preserve newlines in the output?
问题 My input.txt file contains the following sample text: you have to let's come and see me. Now if I invoke the Stanford POS tagger with the default command: java -classpath stanford-postagger.jar edu.stanford.nlp.tagger.maxent.MaxentTagger -model models/wsj-0-18-bidirectional-distsim.tagger -textFile input.txt > output.txt I get the following in my output.txt file: you_PRP have_VBP to_TO let_VB 's_POS come_VB and_CC see_VB me_PRP ._. The problem with the above output is that I have lost my