Open BigSalmon2 opened 4 years ago
Hey, for the HTML and Flask implementation, first you have to go through the basics of web app in Flask.
Regarding the token of choice, you can randomly pick up the index to mask or you can manually keep it as you have done there..
Hope this helps!
Thank you. If I wanted to [MASK] the token of my choice, could I do this:
text_sentence["<mask>"] = tokenizer.mask_token
text_sentence["<mask>"] = tokenizer.mask_token
It only predicts the second and eigth token, not the tokens of choice. You can use this in its place, but I do not have the experience to implement it with the HTML and Flask.