AutoTrain 文档

Seq2Seq

您正在查看 版本,它需要从源代码安装. 如果你想要使用 pip 进行常规安装,请查看最新的稳定版本(v0.8.8)。
Hugging Face's logo
加入 Hugging Face 社区

并获得增强文档体验

开始使用

Seq2Seq

Seq2Seq 是一项将单词序列转换为另一个单词序列的任务。它被用于机器翻译、文本摘要和问答。

数据格式

数据集可以是 CSV 文件

text,target
"this movie is great","dieser Film ist großartig"
"this movie is bad","dieser Film ist schlecht"
.
.
.

或 JSONL 文件

{"text": "this movie is great", "target": "dieser Film ist großartig"}
{"text": "this movie is bad", "target": "dieser Film ist schlecht"}
.
.
.

你的 CSV/JSONL 数据集必须包含两列:texttarget

< > 更新 在 GitHub 上

© . This site is unofficial and not affiliated with Hugging Face, Inc.