Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/stanfordnlp/stanza.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'demo/corenlp.py')
-rw-r--r--demo/corenlp.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/demo/corenlp.py b/demo/corenlp.py
index 2bb761fa..39467d4b 100644
--- a/demo/corenlp.py
+++ b/demo/corenlp.py
@@ -82,7 +82,7 @@ with CoreNLPClient(annotators=['tokenize','ssplit','pos','lemma','ner','parse','
matches["sentences"][1]["0"]["1"]["text"] == "Chris"
# Use semgrex patterns to directly find who wrote what.
- pattern = '{word:wrote} >nsubj {}=subject >dobj {}=object'
+ pattern = '{word:wrote} >nsubj {}=subject >obj {}=object'
matches = client.semgrex(text, pattern)
# sentences contains a list with matches for each sentence.
assert len(matches["sentences"]) == 3