小编Ари*_*дел的帖子

T5Tokenizer 需要 SentencePiece 库,但在您的环境中找不到它

我正在尝试探索T5

这是代码

!pip install transformers
from transformers import T5Tokenizer, T5ForConditionalGeneration
qa_input = """question: What is the capital of Syria? context: The name "Syria" historically referred to a wider region,
 broadly synonymous with the Levant, and known in Arabic as al-Sham. The modern state encompasses the sites of several ancient 
 kingdoms and empires, including the Eblan civilization of the 3rd millennium BC. Aleppo and the capital city Damascus are 
 among the oldest continuously inhabited cities in the world."""
tokenizer = …
Run Code Online (Sandbox Code Playgroud)

google-colaboratory huggingface-transformers

10
推荐指数
2
解决办法
2万
查看次数