-
Notifications
You must be signed in to change notification settings - Fork 5
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 am getting this error #11
Comments
Did you install spacy?
additionally install spacy as that is not in requirements.txt
|
After Installing spacy also it did not worked |
is it giving same error after installing spacy. |
same here getting same error. |
spacy might have changed their model.
It is most likely a version issue. and urllib one is just a warning that you can ignore. |
See initially I was using latest version of python and pip and while installing i was having issue with installation something like build issue so i seen this was happening because of latest pip so i manually installed every modules and started your program then i was passing text but it was not able to recieve the text and it was sending the error stanford-parser-full-2018-10-17.zip not found or not accessible i checked this link there were a message service is close till 3 july now you can check the link again for the file its showing 404 not found then i changed the version of python with 3.9.8 and again installed every dependecies without having any issue with the same version what you mentioned but now giving this error. |
I just saw that the page is returning 404. rest i think you got the project working if you were able to enter the text, with this zip you'll be fine |
and try not putting multiple paths like you have put oracle one twice, remove them both and just set %JAVA_HOME%\bin |
I dont have to extract the file right? |
You can extract it or the let the code extract up to you |
Traceback (most recent call last):
File "main.py", line 99, in
en_nlp = stanza.Pipeline('en',processors={'tokenize':'spacy'})
File "/home/gaian/.local/lib/python3.8/site-packages/stanza/pipeline/core.py", line 139, in init
self.processors[processor_name] = NAME_TO_PROCESSOR_CLASS[processor_name](config=curr_processor_config,
File "/home/gaian/.local/lib/python3.8/site-packages/stanza/pipeline/processor.py", line 159, in init
self._set_up_model(config, use_gpu)
File "/home/gaian/.local/lib/python3.8/site-packages/stanza/pipeline/pos_processor.py", line 25, in _set_up_model
self._trainer = Trainer(pretrain=self.pretrain, model_file=config['model_path'], use_cuda=use_gpu)
File "/home/gaian/.local/lib/python3.8/site-packages/stanza/models/pos/trainer.py", line 35, in init
self.load(model_file, pretrain)
File "/home/gaian/.local/lib/python3.8/site-packages/stanza/models/pos/trainer.py", line 120, in load
self.model.load_state_dict(checkpoint['model'], strict=False)
File "/home/gaian/.local/lib/python3.8/site-packages/torch/nn/modules/module.py", line 1406, in load_state_dict
raise RuntimeError('Error(s) in loading state_dict for {}:\n\t{}'.format(
RuntimeError: Error(s) in loading state_dict for Tagger:
size mismatch for drop_replacement: copying a param with shape torch.Size([2248]) from checkpoint, the shape in current model is torch.Size([325]).
size mismatch for taggerlstm.lstm.0.lstm.weight_ih_l0: copying a param with shape torch.Size([800, 2248]) from checkpoint, the shape in current model is torch.Size([800, 325]).
size mismatch for taggerlstm.lstm.0.lstm.weight_ih_l0_reverse: copying a param with shape torch.Size([800, 2248]) from checkpoint, the shape in current model is torch.Size([800, 325]).
size mismatch for taggerlstm.highway.0.weight: copying a param with shape torch.Size([400, 2248]) from checkpoint, the shape in current model is torch.Size([400, 325]).
size mismatch for taggerlstm.gate.0.weight: copying a param with shape torch.Size([400, 2248]) from checkpoint, the shape in current model is torch.Size([400, 325]).
The text was updated successfully, but these errors were encountered: