Feb 22, 2022
in order to actually use the model, we are going
tokenizer = AutoTokenizer.from_pretrained(model_name)
model = AutoModelForMaskedLM.from_pretrained(model_name)
unmasker = pipeline('fill-mask', model=model, tokenizer=tokenizer)
then just pass the setence with [MASK] in place for the word to detect?