【发布时间】:2020-07-22 06:24:27
【问题描述】:
下面让我得到 5 条关于蒙面令牌的建议,但我想得到 10 条建议 - 有谁知道这是否可以通过拥抱脸来实现?
!pip install -q transformers
from __future__ import print_function
import ipywidgets as widgets
from transformers import pipeline
nlp_fill = pipeline('fill-mask')
nlp_fill("I am going to guess <mask> in this sentence")
【问题讨论】:
标签: python neural-network nlp huggingface-transformers