File size: 280 Bytes
5fa1a76
 
 
 
 
 
1
2
3
4
5
6
generator = pipeline(task="text-generation")
generator(prompt)  # doctest: +SKIP

masked: the model's objective is to predict a masked token in a sequence with full access to the tokens in the sequence

text = "Hugging Face is a community-based open-source  for machine learning."