File tree Expand file tree Collapse file tree 1 file changed +11
-5
lines changed Expand file tree Collapse file tree 1 file changed +11
-5
lines changed Original file line number Diff line number Diff line change @@ -45,18 +45,24 @@ Produces a list with a parsed dictionary for each sentence:
45
45
46
46
Result [{"text": "hello world",
47
47
"tuples": [("amod", "world", "hello")],
48
- "words": {"world": {"NamedEntityTag": O ,
49
- "CharacterOffsetEnd": 11 ,
48
+ "words": {"world": {"NamedEntityTag": "O" ,
49
+ "CharacterOffsetEnd": "11" ,
50
50
"Lemma": "world",
51
51
"PartOfSpeech": "NN",
52
- "CharacterOffsetBegin": 6 },
53
- "hello": {"NamedEntityTag": O ,
54
- "CharacterOffsetEnd": 5 ,
52
+ "CharacterOffsetBegin": "6" },
53
+ "hello": {"NamedEntityTag": "O" ,
54
+ "CharacterOffsetEnd": "5" ,
55
55
"Lemma": "hello",
56
56
"PartOfSpeech": "JJ",
57
57
"CharacterOffsetBegin": 0}}}]
58
58
59
59
60
+ To use it in a regular script or to edit/debug, load the module instead:
61
+
62
+ from server import *
63
+ corenlp = StanfordCoreNLP()
64
+ corenlp.parse("Parse an imperative sentence, damnit!")
65
+
60
66
<!--
61
67
## Adding WordNet
62
68
You can’t perform that action at this time.
0 commit comments