You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
download the offline file(pytorch_model.bin/vocab.txt/config.json eg. ) If we put these files into biobert-base-cased-v1.1.And we type the comman(
--data_dir
../datasets/NER/NCBI-disease
--labels
../datasets/NER/NCBI-disease/labels.txt
--model_name_or_path
./biobert-base-cased-v1.1
--output_dir
output/NCBI-disease
--max_seq_length
128
--num_train_epochs
3
--per_device_train_batch_size
1
--save_steps
1000
--seed
1
--do_train
--do_eval
--do_predict
--overwrite_output_dir ) to run the run_ner.py.We will faild.You have to fix the code in line 245 in run_ner.py." trainer.train(
model_path=model_args.model_name_or_path if os.path.isdir(model_args.model_name_or_path) else None
)" = > trainer.train(
model_path = None
).
If we don't change this line code, the model will output 2 class.There will bring error.NER have to 3 class.
The text was updated successfully, but these errors were encountered:
download the offline file(pytorch_model.bin/vocab.txt/config.json eg. ) If we put these files into biobert-base-cased-v1.1.And we type the comman(
--data_dir
../datasets/NER/NCBI-disease
--labels
../datasets/NER/NCBI-disease/labels.txt
--model_name_or_path
./biobert-base-cased-v1.1
--output_dir
output/NCBI-disease
--max_seq_length
128
--num_train_epochs
3
--per_device_train_batch_size
1
--save_steps
1000
--seed
1
--do_train
--do_eval
--do_predict
--overwrite_output_dir ) to run the run_ner.py.We will faild.You have to fix the code in line 245 in run_ner.py." trainer.train(
model_path=model_args.model_name_or_path if os.path.isdir(model_args.model_name_or_path) else None
)" = > trainer.train(
model_path = None
).
If we don't change this line code, the model will output 2 class.There will bring error.NER have to 3 class.
The text was updated successfully, but these errors were encountered: