Posts

Showing posts with the label Nltk

Coreference Resolution In Python Nltk Using Stanford CoreNLP

Image
Answer : As mentioned by @Igor You can try the python wrapper implemented in this GitHub repo: https://github.com/dasmith/stanford-corenlp-python This repo contains two main files: corenlp.py client.py Perform the following changes to get coreNLP working: In the corenlp.py, change the path of the corenlp folder. Set the path where your local machine contains the corenlp folder and add the path in line 144 of corenlp.py if not corenlp_path: corenlp_path = <path to the corenlp file> The jar file version number in "corenlp.py" is different. Set it according to the corenlp version that you have. Change it at line 135 of corenlp.py jars = ["stanford-corenlp-3.4.1.jar", "stanford-corenlp-3.4.1-models.jar", "joda-time.jar", "xom.jar", "jollyday.jar"] In this replace 3.4.1 with the jar version which you have downloaded. Run the command: python corenlp.py This...