Closed juelap closed 3 years ago
Hi,
Thanks for reporting this issue!
As you correctly guessed, this is 100% fixed by having the correct versions of the packages:
torch==1.4.0
transformers==2.6.0
I have added a requirements.txt
file, so that you can install everything at once in your virtual env.
Also, note that you can use python3 format_wikibio.py --first_sentence
to train models on only the first sentences (which is the standard case in most paper). I have now added this command to data/README.md
.
It seems to be working on my end, so I am closing this issue for now. Don't hesitate to reopen if I have missed anything!
Cheers, Clément
I am trying to run the POS-tagging cmd
python3 pos_tagging.py --do_train --do_tagging train --gpus 0 1 --dataset_folder wikibio
that is listed in the README ofdata
folder, but doesn't complete successfully. I get the following error:The first type of error is happening when computing the
run_ner.py
script and I think is related to the version of thetransformers
package that is used. As I have tested, when the version is => 3.X.X the above error ofAttributeError: type object 'BertConfig' has no attribute 'pretrained_config_archive_map'
is thrown. When a lower version of the package is used, say 2.0.0, the following errorImportError: cannot import name 'CamembertConfig' from 'transformers' (/opt/conda/lib/python3.7/site-packages/transformers/__init__.py)
is thrown. Maybe there should be a specific version of the package used where none of the errors is happening.The second and more important error says that the above
./pos/trained/test_predictions.txt
file is not found. Where shall I find this file? Do I need to get it from somewhere else? Thanks in advance :)