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

Skip to content

Commit 35a05a5

Browse files
committed
README
1 parent 2cc1e47 commit 35a05a5

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,9 @@ 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
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 sentences, dealing with only one at a time.
59+
### Parsing Imperative Sentences
60+
61+
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.
6062

6163
corenlp.parse("stop smoking")
6264
>> [{"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"}]]}]

0 commit comments

Comments
 (0)
0