allenai / allenai/scibert

No module named 'scibert'&RROR: en-core-web-sm 2.2.5 has requirement spacy>=2.2.2, but you'll have spacy 2.1.9 which is incompatible."

Aperta
#109 6 commenti 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
Python
Stelle
1.7k
Fork
232
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

I have two questions

firstly:I'm running train_allennlp_local.sh with a bug:

ModuleNotFoundError: No module named 'scibert'
YML@Spuer-HR:~/Jiaxin/scibert-master/scripts$ ./train_allennlp_local.sh output/
2020-11-10 11:08:03,865 - INFO - pytorch_pretrained_bert.modeling - Better speed can be achieved with apex installed from https://www.github.com/nvidia/apex .
2020-11-10 11:08:04,366 - INFO - pytorch_transformers.modeling_bert - Better speed can be achieved with apex installed from https://www.github.com/nvidia/apex .
2020-11-10 11:08:04,368 - INFO - pytorch_transformers.modeling_xlnet - Better speed can be achieved with apex installed from https://www.github.com/nvidia/apex .
2020-11-10 11:08:04,492 - INFO - allennlp.common.registrable - instantiating registered subclass relu of
2020-11-10 11:08:04,493 - INFO - allennlp.common.registrable - instantiating registered subclass relu of
2020-11-10 11:08:04,493 - INFO - allennlp.common.registrable - instantiating registered subclass relu of
2020-11-10 11:08:04,493 - INFO - allennlp.common.registrable - instantiating registered subclass relu of
Traceback (most recent call last):
File "/home/haorui/anaconda3/lib/python3.7/runpy.py", line 193, in _run_module_as_main
"__main__", mod_spec)
File "/home/haorui/anaconda3/lib/python3.7/runpy.py", line 85, in _run_code
exec(code, run_globals)
File "/home/YML/Jiaxin/scibert-master/src/allennlp/allennlp/run.py", line 21, in
run()
File "/home/YML/Jiaxin/scibert-master/src/allennlp/allennlp/run.py", line 18, in run
main(prog="allennlp")
File "/home/YML/Jiaxin/scibert-master/src/allennlp/allennlp/commands/__init__.py", line 101, in main
import_submodules(package_name)
File "/home/YML/Jiaxin/scibert-master/src/allennlp/allennlp/common/util.py", line 323, in import_submodules
module = importlib.import_module(package_name)
File "/home/haorui/anaconda3/lib/python3.7/importlib/__init__.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "", line 1006, in _gcd_import
File "", line 983, in _find_and_load
File "", line 965, in _find_and_load_unlocked
ModuleNotFoundError: No module named 'scibert'

Among them, my version:
Successfully installed allennlp blis-0.2.4 conllu-1.3.1 cymem-2.0.4 jsonlines-1.2.0 preshed-2.0.1 pytorch-transformers-1.1.0 spacy-2.1.9 thinc-7.0.8

Second, I don't know if the following installation error will affect the use.

it appears in the installation :"ERROR: en-core-web-sm 2.2.5 has requirement spacy>=2.2.2, but you'll have spacy 2.1.9 which is incompatible."

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.