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

Way to mask multiple words in a sentence? #9

Closed
vineeth567 opened this issue Jun 26, 2020 · 3 comments
Closed

Way to mask multiple words in a sentence? #9

vineeth567 opened this issue Jun 26, 2020 · 3 comments

Comments

@vineeth567
Copy link

Hi,
Is there a way to mask multiple words in a sentence?

Thanks in advance.

@datquocnguyen
Copy link
Member

Do you mean in training or inference phase?

@vineeth567
Copy link
Author

vineeth567 commented Jun 29, 2020 via email

@datquocnguyen
Copy link
Member

datquocnguyen commented Jul 1, 2020

You might use a beam search to sequently predict each <mask> (from left to right) based on its unmasked context, e.g. first predicting How <mask> are, then How <1st_masked_candidate> are <mask>, How <2nd_masked_candidate> are <mask>, How <3rd_masked_candidate> are <mask>.

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