yasumasaonoe / ET4EL

22 stars 5 forks source link

Requirements #2

Open saswatidana opened 3 years ago

saswatidana commented 3 years ago

Hello, I was trying to train the model. Even after installing allennlp, I am getting an error "from allennlp.commands.elmo import ElmoEmbedder ModuleNotFoundError: No module named 'allennlp.commands.elmo'". Looks like some versioning issue. Is it possible to share requirements.txt file ? Also can we download trained model ?

relativityhd commented 3 years ago

It's maybe too late but I figured the right versions for the entity-typing part. Here is the requirements.txt I created:

alabaster==0.7.12
allennlp==0.9.0
appdirs==1.4.4
attrs @ file:///tmp/build/80754af9/attrs_1620827162558/work
Babel==2.9.1
black==19.10b0
blis==0.2.4
boto3==1.17.85
botocore==1.20.85
cached-property==1.5.2
certifi==2021.5.30
cffi @ file:///opt/concourse/worker/volumes/live/ca3c0fea-9d0f-4489-6889-89b42078ed37/volume/cffi_1613246931142/work
chardet==4.0.0
click @ file:///tmp/build/80754af9/click_1621604852318/work
conllu==1.3.1
cycler==0.10.0
cymem==2.0.5
docutils==0.17.1
editdistance==0.5.3
flaky==3.7.0
Flask==2.0.1
Flask-Cors==3.0.10
ftfy==6.0.3
gevent==21.1.2
greenlet==1.1.0
h5py==3.2.1
idna==2.10
imagesize==1.2.0
importlib-metadata==4.4.0
iniconfig==1.1.1
itsdangerous==2.0.1
Jinja2==3.0.1
jmespath==0.10.0
joblib==1.0.1
jsonnet==0.17.0
jsonpickle==2.0.0
kiwisolver==1.3.1
MarkupSafe==2.0.1
matplotlib==3.4.2
mkl-fft==1.3.0
mkl-random==1.1.1
mkl-service==2.3.0
murmurhash==1.0.5
mypy-extensions==0.4.3
nltk==3.6.2
numpy @ file:///opt/concourse/worker/volumes/live/a1b5ea96-b05c-40ba-5dfb-4542ece1c186/volume/numpy_and_numpy_base_1603491228242/work
numpydoc==1.1.0
overrides==3.1.0
packaging==20.9
parsimonious==0.8.1
pathspec==0.7.0
Pillow==8.2.0
plac==0.9.6
pluggy==0.13.1
preshed==2.0.1
protobuf==3.17.1
py==1.10.0
pycparser @ file:///tmp/build/80754af9/pycparser_1594388511720/work
Pygments==2.9.0
pyparsing==2.4.7
pytest==6.2.4
python-dateutil==2.8.1
pytorch-pretrained-bert==0.6.2
pytorch-transformers==1.1.0
pytz==2021.1
regex @ file:///opt/concourse/worker/volumes/live/e6eeb005-ec8b-451a-7c56-1e24b2d15761/volume/regex_1617569708726/work
requests==2.25.1
responses==0.13.3
s3transfer==0.4.2
scikit-learn==0.24.2
scipy==1.6.3
sentencepiece==0.1.95
six @ file:///opt/concourse/worker/volumes/live/f983ba11-c9fe-4dff-7ce7-d89b95b09771/volume/six_1605205318156/work
snowballstemmer==2.1.0
spacy==2.1.9
Sphinx==4.0.2
sphinxcontrib-applehelp==1.0.2
sphinxcontrib-devhelp==1.0.2
sphinxcontrib-htmlhelp==2.0.0
sphinxcontrib-jsmath==1.0.1
sphinxcontrib-qthelp==1.0.3
sphinxcontrib-serializinghtml==1.1.5
sqlparse==0.4.1
srsly==1.0.5
tensorboardX==2.2
thinc==7.0.8
threadpoolctl==2.1.0
toml @ file:///tmp/build/80754af9/toml_1616166611790/work
torch==1.4.0
tqdm==4.61.0
typed-ast @ file:///opt/concourse/worker/volumes/live/f24de662-b4e3-467b-58a8-199787662676/volume/typed-ast_1610484563580/work
typing-extensions==3.10.0.0
typing-utils==0.1.0
Unidecode==1.2.0
urllib3==1.26.5
wasabi==0.8.2
wcwidth==0.2.5
Werkzeug==2.0.1
word2number==1.1
zipp @ file:///tmp/build/80754af9/zipp_1615904174917/work
zope.event==4.5.0
zope.interface==5.4.0

The main problem was that it uses an older version of allennlp (Version 0.9.0) and this results in another error because the library overrides (Version 3.1.0) needed an downgrade aswell.