Created
December 21, 2020 16:53
-
-
Save HeenaR17/972018583dd119aa8093fbb451b476a1 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from transformers import pipeline | |
def create_pipeline(model_name): | |
return pipeline('fill-mask', model=model_name) | |
predict_mask = create_pipeline("bert-base-uncased") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment