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

Unsatisfactory results #8

Open
WenTingTseng opened this issue Apr 21, 2020 · 1 comment
Open

Unsatisfactory results #8

WenTingTseng opened this issue Apr 21, 2020 · 1 comment

Comments

@WenTingTseng
Copy link

I try to run code like this

python3 run_squad.py \
    --model_type bert \
    --model_name_or_path bert-large-uncased-whole-word-masking \
    --do_train \
    --do_eval \
    --do_lower_case \
    --train_file train-v1.1.json \
    --predict_file dev-v1.1.json \
    --learning_rate 3e-5 \
    --num_train_epochs 2 \
    --max_seq_length 384 \
    --doc_stride 128 \
    --output_dir ../models/wwm_uncased_finetuned_squad/ \
    --per_gpu_eval_batch_size=3   \
    --per_gpu_train_batch_size=3   \
	--overwrite_output_dir \

But I get the bad result F1 score only 7.35
擷取

I don't know how to solve it
Thanks a lot for your help

@anil1055
Copy link

Hi,

I solved this problem.
1-You'll write 'self.do_lower_case = False or True' according to model situation in bert.py file
2-You'll update def load_model(self,model_path: str,do_lower_case=False) function like def load_model(self,model_path: str,do_lower_case): deleted False in bert.py file.
That's it.

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

2 participants