A simple tool that allows you to check OpenNLP model on your data set.
- Clone or download this repository from GitHub.
- Make sure that you have Java installed
java --version
, otherwise download it from Java official website - In
classes/artifacts/opennlp_categorizer__jar
folder start Command Prompt and executejava -jar opennlp-categorizer.jar model_path test_file output_file amount
, where:- model_path - path to trained model
- test_file - path to file with data to check. Every new text for analysis should be on a new line and each line is represented as follows:
mark[Tab]text
- output_file - path to file where results will be saved. Format for each line is -
real_mark[Tab]predicted_mark[Tab]text[Tab]text_length[Tab]amount_parameter
- amount - number, that is used to separate results (It does not affect sentiment analysis results)