neuralmind-ai / portuguese-bert

Portuguese pre-trained BERT models
Other
792 stars 122 forks source link

Bert with huggingface #11

Closed nadia-felix closed 4 years ago

nadia-felix commented 4 years ago

We have had this error when i try to use the portuguese neuralmind:

ValueError: Unrecognized model in neuralmind_model_tensor/.

I am running this: python examples/run_glue.py --model_type bert --model_name_or_path neuralmind_model_tensor/ --task_name tweetsent --do_train --do_eval --do_lower_case --data_dir $SENT_DIR/ --max_seq_length 128 --per_gpu_train_batch_size 32 --learning_rate 2e-5 --num_train_epochs 1.0 --output_dir /tmp/output/

What can be this?

pvcastro commented 4 years ago

Hi @nadia-felix , the actual model_name_or_path should be either neuralmind/bert-base-portuguese-cased or neuralmind/bert-large-portuguese-cased