🚀 CoEdIT-Large模型卡片
CoEdIT-Large模型通过在CoEdIT数据集上微调对应的google/flan-t5-large
模型获得。数据集的详细信息可在我们的论文和仓库中找到。
🚀 快速开始
我们提供了论文中所展示的模型。
模型 |
参数数量 |
CoEdIT-large |
7.7亿 |
CoEdIT-xl |
30亿 |
CoEdIT-xxl |
110亿 |
基础用法
from transformers import AutoTokenizer, T5ForConditionalGeneration
tokenizer = AutoTokenizer.from_pretrained("grammarly/coedit-large")
model = T5ForConditionalGeneration.from_pretrained("grammarly/coedit-large")
input_text = 'Fix grammatical errors in this sentence: When I grow up, I start to understand what he said is quite right.'
input_ids = tokenizer(input_text, return_tensors="pt").input_ids
outputs = model.generate(input_ids, max_length=256)
edited_text = tokenizer.decode(outputs[0], skip_special_tokens=True)
✨ 主要特性
文本修订任务
给定编辑指令和原始文本,我们的模型能够生成编辑后的文本。

📚 详细文档
模型详情
模型描述
- 语言(NLP):英语
- 微调基础模型:google/flan-t5-large
模型来源
- 仓库:https://github.com/vipulraheja/coedit
- 论文:https://arxiv.org/abs/2305.09857
软件
https://github.com/vipulraheja/coedit
📄 许可证
本模型使用CC BY-NC 4.0许可证。
数据集
- facebook/asset
- wi_locness
- GEM/wiki_auto_asset_turk
- discofuse
- zaemyung/IteraTeR_plus
- jfleg
- grammarly/coedit
评估指标
示例
示例标题 |
文本 |
流畅性 |
Fix the grammar: When I grow up, I start to understand what he said is quite right. |
连贯性 |
Make this text coherent: Their flight is weak. They run quickly through the tree canopy. |
简化 |
Rewrite to make this easier to understand: A storm surge is what forecasters consider a hurricane's most treacherous aspect. |
释义 |
Paraphrase this: Do you know where I was born? |
正式化 |
Write this more formally: omg i love that song im listening to it right now |
中立化 |
Write in a more neutral way: The authors' exposé on nutrition studies. |
📝 引用
BibTeX
@article{raheja2023coedit,
title={CoEdIT: Text Editing by Task-Specific Instruction Tuning},
author={Vipul Raheja and Dhruv Kumar and Ryan Koo and Dongyeop Kang},
year={2023},
eprint={2305.09857},
archivePrefix={arXiv},
primaryClass={cs.CL}
}
APA
Raheja, V., Kumar, D., Koo, R., & Kang, D. (2023). CoEdIT: Text Editing by Task-Specific Instruction Tuning. ArXiv. /abs/2305.09857
论文:CoEdIT: Text Editing by Task-Specific Instruction Tuning
作者:Vipul Raheja, Dhruv Kumar, Ryan Koo, Dongyeop Kang