Check The Core NLP demo for reference on output.
I'm using this wrapper: https://github.com/Lynten/stanford-corenlp. Stanford CORE NLP needs to be installed and present. nlp_path
-variable has to point to it in the .py file (see below).
Create a virtual environment, run with Python 3.6.
Use pip to install the package:
pip install stanfordcorenlp
All the required (and then some) packages are listed in requirements.txt.
Run main.sh
. To change the annotators used, adjust the 'annotators' key in props
-variable.
Input is plain txt. Change the input path variable in main.py
.
Output is JSON. Change the variable in the above .py file.