pctest / test.py
pchopalli's picture
Create test.py
96bfc89
raw
history blame
220 Bytes
!pip install datasets evaluate transformers[sentencepiece]
from transformers import pipeline
unmasker = pipeline("fill-mask", model="distilroberta-base")
unmasker(
"Unites States is the <mask>",top_k=3,
)