DKPro Core - OpenNLP Part-of-speech tagging pipeline with direct access to results
Analytics
The following script reads all text files (*.txt) in the specified folder and prints part-of-speech tags, one per line.
To execute the script, save it as pos.jpy. Then change in the command line to the folder where you saved the script and typ the command C:\jython2.7b1\jython pos.jpy <foldername> <language>, e.g. C:\jython2.7b1\jython pos.jpy C:\example_folder\ en. This will read all text files (*.txt) located in C:\example_folder\ and assumes that the language in these files is English. Of course C:\example_folder\ must exist on your file system and must contain at least one .txt file.
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?