How can I change the code below to produce horizontal annotations in Stanford NLP?

Viewed 4

When I use the code java -cp "*" edu.stanford.nlp.pipeline.StanfordCoreNLP -annotators tokenize,ssplit,pos,lemma -file 1.txt -outputFormat conll -output.columns lemma to annotate this example sentence

Stanford University is located in California. It is a great university, founded in 1891.

I get the result like this: Annotations formatted vertically But I couldn't manage to output the annotations horizontally. For instance, I could not have the annotated lemmas or POS output this way in a txt file:

Stanford University be locate in California. it be a great university, found in 1891.

I know this must be a very silly question, but it has been bugging me for a while. I know too little about scripting and there's no one around me that I could turn to. I will be very grateful for any generous help to help me modify the code to meet my purpose.

0 Answers
Related