Logo
Section 1 / 9

自然语言处理推理简介

学习使用 Hugging Face 模型完成常见的自然语言处理任务。

导入

自然语言处理推理简介

学习使用 Hugging Face 模型完成常见的自然语言处理任务。

...
NLP任务
1from transformers import pipeline
1translator = pipeline("translation_en_to_fr")
1translator("The sun is rising amid the hills.")

简介

文本与令牌分类