DKPro Core - OpenNLP Part-of-speech tagging & parsing without reader
Embedding
This script is not using a reader. Instead the input is given as a Jython string (see jcas.documentText).
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 C:\jython2.7b1\jython pos_parser.jpy.
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.
Please support DKPro Core project by allowing this site to use cookies to track your activity. Doing so allows us to get an idea of how interesting our project is to the community. The EU General Data Protection Regulation (GDPR) requires us to ask you for your consent about the use of cookies. To learn more about how our site makes use of cookies and uses your activity data, please refer to our privacy policy. You can also always revise the choice you make here by visiting out privacy policy page.
Do you allow tracking your activity on this site using cookies?