Skip to content

Latest commit

 

History

History
18 lines (12 loc) · 712 Bytes

README.md

File metadata and controls

18 lines (12 loc) · 712 Bytes

CoreNLP pipeline for Dependecies and Lemmas

The included scripts are for interaction with Dustin Smiths python-wrapper for Stanfords CoreNLP.

Setup

  1. Clone the python wrapper, and follow the instruction for installation.
  2. Copy coreNLP.py and gen_dep_lemma.py to the python wrapper directory

Parsing examples

Start the coreNLP server:

> python2 coreNLP.py &

Run the gen_dep_lemma.py script:

> python2 gen_dep_lemma.py linesWithAnnotations110716.json

Dependencies and lemma are written to dep_lemma.jsons

Use dep_lemma.jsons with the -d flag for makeFeats_withCataphora.py