DKPro Core - OpenNLP Part-of-speech tagging pipeline with direct access to results
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.
Do you allow tracking your activity on this site using cookies?