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

I installed the package according to the requirements. I wanted to use the pre trained model to make predictions, but it failed to run. #35

Closed
SiriusXT opened this issue Nov 18, 2022 · 2 comments

Comments

@SiriusXT
Copy link

SiriusXT commented Nov 18, 2022

I installed the package according to the requirements. I wanted to use the pre trained model to make predictions, but it failed to run.
Two error was reported:
1. allennlp.common.checks.ConfigurationError: Extra parameters passed to SpanModel: {'relation_head_type': 'proper', 'use_bilstm_after_embedder': False, 'use_double_mix_embedder': False, 'use_ner_embeds': False}
Traceback (most recent call last):
File "X:\workspace\python\papercode@aspect\Span-ASTE\aste\test.py", line 4, in
model.predict('test.txt', "pred.txt")
File "X:\workspace\python\papercode@aspect\Span-ASTE\aste\wrapper.py", line 83, in predict
with open(path_temp_out) as f:
2. FileNotFoundError: [Errno 2] No such file or directory: 'X:\workspace\python\papercode\@aspect\Span-ASTE\pretrained_dir\temp_data\pred_out.json'

@chiayewken
Copy link
Owner

Thank you for raising this error, I have updated the pretrained weights and demo notebooks, please git pull to latest commit and try again

@SiriusXT
Copy link
Author

Thanks, according to the new pre training model, it has been successfully run.

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