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

Strange output from unchanged generate.py #7

Open
summerstay opened this issue Nov 10, 2020 · 0 comments
Open

Strange output from unchanged generate.py #7

summerstay opened this issue Nov 10, 2020 · 0 comments

Comments

@summerstay
Copy link

When I run generate.py with no changes (except removing pdb) this is the output I see:

The pre-trained model you are loading is a cased model but you have not set `do_lower_case` to False. We are setting `do_lower_case=False` for you but you may want to check this behavior.
Decoding strategy sequential, argmax at each step
Iteration 0: this is a sentence .
	BERT prediction: . is a . .
Iteration 1: . is a sentence .
	BERT prediction: . is a . .
Iteration 2: . is a sentence .
	BERT prediction: . is a . .
Iteration 3: . is a sentence .
	BERT prediction: . is a . .
Iteration 4: . is a . .
	BERT prediction: . . a . .
Final: . is a . .

That doesn't seem to be the desired result. Why so many periods? If this is expected, can you give me an example of an input and configuration that will find the correct answer?

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

1 participant