scibert
scibert copied to clipboard
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."
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 <class 'allennlp.nn.activations.Activation'>
2020-11-10 11:08:04,493 - INFO - allennlp.common.registrable - instantiating registered subclass relu of <class 'allennlp.nn.activations.Activation'>
2020-11-10 11:08:04,493 - INFO - allennlp.common.registrable - instantiating registered subclass relu of <class 'allennlp.nn.activations.Activation'>
2020-11-10 11:08:04,493 - INFO - allennlp.common.registrable - instantiating registered subclass relu of <class 'allennlp.nn.activations.Activation'>
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
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."
I have the same problem!!
ModuleNotFoundError: No module named 'scibert'
If you solve it, please contact me, thank you.
发自我的iPhone
------------------ Original ------------------ From: CatalinaZ16 <[email protected]> Date: Tue,Nov 10,2020 11:29 AM To: allenai/scibert <[email protected]> Cc: Yuanml1225 <[email protected]>, Author <[email protected]> Subject: Re: [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." (#109)
I have the same problem!!
ModuleNotFoundError: No module named 'scibert'
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.
Of course, you too!
Regards!
El lun., 9 nov. 2020 a las 22:37, Yuanml1225 ([email protected]) escribió:
If you solve it, please contact me, thank you.
发自我的iPhone
------------------ Original ------------------ From: CatalinaZ16 <[email protected]> Date: Tue,Nov 10,2020 11:29 AM To: allenai/scibert <[email protected]> Cc: Yuanml1225 <[email protected]>, Author <[email protected]>
Subject: Re: [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." (#109)
I have the same problem!!
ModuleNotFoundError: No module named 'scibert'
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/allenai/scibert/issues/109#issuecomment-724428969, or unsubscribe https://github.com/notifications/unsubscribe-auth/AM2MC5UBQUJKW52NQBTUK4DSPCYPZANCNFSM4TQD5NDQ .
-- Catalina Zapata Bioingeniera Universidad de Antioquia
Of course, you too! Regards! El lun., 9 nov. 2020 a las 22:37, Yuanml1225 ([email protected]) escribió: … If you solve it, please contact me, thank you. 发自我的iPhone ------------------ Original ------------------ From: CatalinaZ16 @.> Date: Tue,Nov 10,2020 11:29 AM To: allenai/scibert @.> Cc: Yuanml1225 @.>, Author @.> Subject: Re: [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." (#109) I have the same problem!! ModuleNotFoundError: No module named 'scibert' — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe. — You are receiving this because you commented. Reply to this email directly, view it on GitHub <#109 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AM2MC5UBQUJKW52NQBTUK4DSPCYPZANCNFSM4TQD5NDQ . -- Catalina Zapata Bioingeniera Universidad de Antioquia
Hello CatalinaZ16, I wonder if you were able to solve this issue?, I ran into the same error; "ModuleNotFoundError: No module named 'scibert' "
The issue was solved by moving the scibert module to the scripts folder.
@CatalinaZ16 @Yuanml1225 Hello my friends. The issue is solved by run "pip install -r requirements.txt" agian! Because something was wrong with the version of allennlp or other libraries.