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

Problem in !sh run_training.sh #5

Open
mitra8814 opened this issue Apr 29, 2021 · 1 comment
Open

Problem in !sh run_training.sh #5

mitra8814 opened this issue Apr 29, 2021 · 1 comment

Comments

@mitra8814
Copy link

Hi Dear,
I want to thank you for your project and your code.
I'm running your project on google colab.
when I run:
!sh run_training.sh
I get this error:

I tensorflow/stream_executor/platform/default/dso_loader.cc:49] Successfully opened dynamic library libcudart.so.11.0
Traceback (most recent call last):
File "/usr/local/bin/allennlp", line 8, in
sys.exit(run())
File "/usr/local/lib/python3.7/dist-packages/allennlp/main.py", line 34, in run
main(prog="allennlp")
File "/usr/local/lib/python3.7/dist-packages/allennlp/commands/init.py", line 118, in main
import_module_and_submodules(package_name)
File "/usr/local/lib/python3.7/dist-packages/allennlp/common/util.py", line 345, in import_module_and_submodules
module = importlib.import_module(package_name)
File "/usr/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 967, in _find_and_load_unlocked
File "", line 677, in _load_unlocked
File "", line 728, in exec_module
File "", line 219, in _call_with_frames_removed
File "/content/large-scale-oie/large_scale_oie/init.py", line 1, in
from large_scale_oie.dataset_readers import *
File "/content/large-scale-oie/large_scale_oie/dataset_readers/init.py", line 1, in
from large_scale_oie.dataset_readers.oie_reader import OieReader
File "/content/large-scale-oie/large_scale_oie/dataset_readers/oie_reader.py", line 12, in
from allennlp.data.dataset_readers.dataset_utils import Ontonotes, OntonotesSentence
ImportError: cannot import name 'Ontonotes' from 'allennlp.data.dataset_readers.dataset_utils' (/usr/local/lib/python3.7/dist-packages/allennlp/data/dataset_readers/dataset_utils/init.py)

Please help me! What do I do?

@mitra8814
Copy link
Author

I installed alennlp=2.4.0 and allennlp-models, but I get this error.

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

1 participant