Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

error #19

Open
FatimahD-Alotaibi opened this issue Nov 18, 2022 · 4 comments
Open

error #19

FatimahD-Alotaibi opened this issue Nov 18, 2022 · 4 comments

Comments

@FatimahD-Alotaibi
Copy link

Hi. Every time I run the code I get this error

ModuleNotFoundError: No module named 'spacy.lang.en.tag_map'

Spacy is installed and all other pipeline packages.

could you please help out?

@entslscheia
Copy link
Collaborator

Hi,

This is probably because you are using an incorrect version of spacy. See this: https://stackoverflow.com/questions/70172383/modulenotfounderror-no-module-named-spacy-lang-en-tag-map-when-installing-pla

Best,
Yu

@FatimahD-Alotaibi
Copy link
Author

Thank you, that's solved the problem.
However, I still get this error when I try to run the code

raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
2022-11-28 12:49:38,853 - INFO - allennlp.models.archival - removing temporary unarchived model dir at /var/folders/34/h45g2gqs235g_cpww7_9nxnr0000gn/T/tmpt4kl4isk

Any suggestions on how to overcome it?

@FatimahD-Alotaibi
Copy link
Author

This error above is resolved finally.

I successfully run the code, however, the evaluation script stops suddenly and gives EM and F1, and the example counts as zeros.
Do you have any idea why this is happening?
Also, it seems that the Virtuoso becomes in-active every certain amount of time.

This is how it looks before it stops.
2022-11-30 15:14:23,632 - INFO - allennlp.training.util - Iterating over dataset
0%| | 0/1 [00:00<?, ?it/s]2022-11-30 15:14:24,430 - INFO - bert_seq2seq_reader - Reading instances from lines in file at: data/grailqa_v1.0_dev.json
example_count: 0.00, exact_match_count: 0.00, exact_match: 0.00, F1: 0.00, exact_match_k: 0.00, MRR_k: 0.00 ||: : 66it [06:08, 19.38s/it]

@FatimahD-Alotaibi
Copy link
Author

Hi, I had this problem resolved also. The code is running without any issues now. However, the results are different.
I tried to run the evaluation and the F1 and EM gave zero.
is there any explanation for why that is happening?

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

No branches or pull requests

2 participants