Skip to content
This repository has been archived by the owner on Dec 16, 2022. It is now read-only.

Different results when running Open IE using online demo vs python code #4943

Closed
Tharu87 opened this issue Jan 29, 2021 · 2 comments · Fixed by allenai/allennlp-models#206
Closed

Comments

@Tharu87
Copy link

Tharu87 commented Jan 29, 2021

The results from the online demo version of Open IE is different from the results I get when calling the model from python code, even it is using the exact same model stated on the demo page (openie-model.2020.03.26.tar.gz).

For example, the sentence "Yellowstone National Park is in the United States of America." yields the following results when using the online demo:
[ARG1: Yellowstone National Park] [V: is] [ARG2: in the United States of America.]
while calling the model from the code yields no results. Anyone can shed some light on why this might be?

@AkshitaB
Copy link
Contributor

@Tharu87 Thank you for pointing this out. The issue is caused by the latest update to SpacyTokenizer, which tags auxiliary verbs like "is" as AUX instead of VERB. This should be resolved by this fix.

@Tharu87
Copy link
Author

Tharu87 commented Feb 2, 2021

Works like a charm, thank you @AkshitaB!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants