8000 updated README · imclab/stanford-corenlp-python@2cc1e47 · GitHub
[go: up one dir, main page]

Skip to content

Commit 2cc1e47

Browse files
committed
updated README
1 parent 10f0304 commit 2cc1e47

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

README.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ To use it in a regular script or to edit/debug it (because errors via RPC are op
5656
corenlp = StanfordCoreNLP() # wait a few minutes...
5757
C842 corenlp.parse("Parse an imperative sentence, damnit!")
5858

59-
I added a function called `parse_imperative` that introduces a dummy pronoun to overcome the problems that dependency parsers have with imperative statements.
59+
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.
6060

6161
corenlp.parse("stop smoking")
6262
>> [{"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"}]]}]
@@ -66,6 +66,8 @@ I added a function called `parse_imperative` that introduces a dummy pronoun to
6666

6767
Only with the dummy pronoun does the parser correctly identify the first word, *stop*, to be a verb.
6868

69+
**Coreferences** are returned in the `coref` key, only when they are found as a list of references, e.g. `{'coref': [['he','John']]}`.
70+
6971
<!--
7072
## Adding WordNet
7173
@@ -81,8 +83,8 @@ If you think there may be a problem with this wrapper, first ensure you can run
8183
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).
8284

8385
# TODO
84-
85-
- Adjust Char Offsets for `parse_imperative` to account for dummy pronoun.
86-
- Parse and resolve coreferences
86+
8787
- Mutex on parser
88+
- Write test functions for parsing accuracy
89+
- Calibrate parse-time prediction as function of sentence inputs
8890

0 commit comments

Comments
 (0)
0