1. Hiroyoshi Komatsu
  2. corenlp-python

Commits

Riccardo Angius  committed e93ec76

Additional dict of dependencies that keeps the original indexing of words

  • Participants
  • Parent commits 4d85fdd
  • Branches master

Comments (0)

Files changed (1)

File corenlp/corenlp.py

View file
  • Ignore whitespace
                 if len(split_entry) == 3:
                     rel, left, right = map(lambda x: remove_id(x), split_entry)
                     sentence['dependencies'].append(tuple([rel, left, right]))
-
                     sentence['indexeddependencies'].append(tuple(split_entry))
 
         elif state == STATE_COREFERENCE: