The parser uses Python 2.7, NLTK 3.2.2 and Stanford version 3.7.0
- Install nltk:
$ pip install nltk
- Download nltk_data:
>>> import nltk >>> nltk.download()
- The esp_parser.py script uses jar files present in stanford-postagger-full-2016-10-31 and stanford-parser-full-2016-10-31.
- Make sure to place unzipped stanford-postagger-full-2016-10-31 and stanford-parser-full-2016-10-31 folders in the same folder as esp_parser.py script.
- Extract stanford-parser-3.7.0-models.jar in the stanford-parser-full-2016-10-31 folder.
- To check the completeness of parser intsallation:
$ python parser_driver.py
- Install Google NLP dependency
$ pip install --upgrade google-cloud-language
- Set GOOGLE_APPLICATION_CREDENTIALS environment variable
$ export GOOGLE_APPLICATION_CREDENTIALS=<path_to_google_service_json_file>
- Install Google Cloud SDK (https://cloud.google.com/sdk/downloads)
- Authenticate the Google client
$ gcloud auth application-default login
- Install Watson NLU dependency
$ pip install --upgrade watson-developer-cloud