Commits

Anonymous committed 2cc1e47

updated README

  • Participants
  • Parent commits 10f0304

Comments (0)

Files changed (1)

     corenlp = StanfordCoreNLP()  # wait a few minutes...
     corenlp.parse("Parse an imperative sentence, damnit!")
 
-I added a function called `parse_imperative` that introduces a dummy pronoun to overcome the problems that dependency parsers have with imperative statements.
+I added a function called `parse_imperative` that introduces a dummy pronoun to overcome the problems that dependency parsers have with imperative sentences, dealing with only one at a time. 
 
     corenlp.parse("stop smoking")
     >> [{"text": "stop smoking", "tuples": [["nn", "smoking", "stop"]], "words": [["stop", {"NamedEntityTag": "O", "CharacterOffsetEnd": "4", "Lemma": "stop", "PartOfSpeech": "NN", "CharacterOffsetBegin": "0"}], ["smoking", {"NamedEntityTag": "O", "CharacterOffsetEnd": "12", "Lemma": "smoking", "PartOfSpeech": "NN", "CharacterOffsetBegin": "5"}]]}]
 
 Only with the dummy pronoun does the parser correctly identify the first word, *stop*, to be a verb.
 
+**Coreferences** are returned in the `coref` key, only when they are found as a list of references, e.g. `{'coref': [['he','John']]}`.
+
 <!--
 ## Adding WordNet
 
 Then, send me (Dustin Smith) a message on GitHub or through email (contact information is available [on my webpage](http://web.media.mit.edu/~dustin).
 
 #  TODO
-
-  - Adjust Char Offsets for `parse_imperative` to account for dummy pronoun.
-  - Parse and resolve coreferences
+ 
   - Mutex on parser
+  - Write test functions for parsing accuracy
+  - Calibrate parse-time prediction as function of sentence inputs