This script is not using a reader. Instead the input is given as a Jython string (see
For this string, the pipeline performs part-of-speech tagging and parses it, using the !OpenNlpParser. The results are written to the console.
To execute the script, save it as
pos_parser.jpy and run
Parsing can require a lot of memory. To increase the available memory for your script, execute
set JAVA_OPTS="-Xmx1G" in the command line and try to execute the script again.