Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

SVO do not pass all unittests #1

Open
sevaader opened this issue Jun 2, 2016 · 1 comment
Open

SVO do not pass all unittests #1

sevaader opened this issue Jun 2, 2016 · 1 comment

Comments

@sevaader
Copy link

sevaader commented Jun 2, 2016

The sample code( intro-spacy-nlp/subject_object_extraction.py
) do not pass all unittests with the following config.

Python 3.5.1 |Continuum Analytics, Inc.
[GCC 4.4.7 20120313 (Red Hat 4.4.7-1)] on linux
nltk 3.2.1
spacy 0.101.0

print("--------------------------------------------------")
tok = nlp("he is an evil man that hurt my child and sister")
svos = SOE_factory('en').findSVOs(tok)
printDeps(tok)
print(svos)
assert set(svos) == {('he', 'hurt', 'child'), ('he', 'hurt', 'sister'), ('man', 'hurt', 'child'), ('man', 'hurt', 'sister')}

The current answer is [('he', 'is', 'man'), ('that', 'hurt', 'child'), ('that', 'hurt', 'sister')]

@Harryhaha
Copy link

Harryhaha commented Apr 12, 2017

Same question.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants