百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
N

neural-summ-cnndm-pytorch

> 编程语言
开源

在 pytorch 上使用神经抽象摘要 (seq2seq + copy (或指针网络) + 覆盖) 处理 CNN/Daily Mail 数据集

200 stars0 点赞0 次浏览
访问官网GitHub

工具介绍

在 pytorch 上使用神经抽象摘要 (seq2seq + copy (或指针网络) + 覆盖) 处理 CNN/Daily Mail 数据集

Abstractive Summarization on CNN-DailyMail

Results

Model-1: attention-seq2seq

Model-2: attention-seq2seq + copy

GRU (NLL loss + norm-clip=5):
…

Model-3: attention-seq2seq + coverage

GRU (NLL loss + norm-clip=5):
…

Model-4: attention-seq2seq + copy + coverage

GRU (NLL loss + norm-clip=5):
…
GRU (avg NLL loss + norm-clip=2):
…
LSTM-v1 (avg NLL loss + norm-clip=2): Pointer-Generator in ACL'17
…
LSTM-v2 (avg NLL loss + norm-clip=2):
…

How to run:

  • Python 3.7, Pytorch 0.4+
  • Download the processed dataset from: https://drive.google.com/drive/folders/0BxUmZA_RBdXnRHk1LUY4YTd2R0U?resourcekey=0-Sob5ZkyzF4T64EiZOBvD8g&usp=sharing , or you can download the original FINISHED_FILES from: https://github.com/JafferWilson/Process-Data-of-CNN-DailyMail , and process by yourself.
  • Modify the path in prepare_data.py then run it: python prepare_data.py
  • Training: python -u main.py | tee train.log
  • Tuning: modify main.py: is_predicting=true and model_selection=true, then run "bash tuning_deepmind.sh | tee tune.log"
  • Testing: modify main.py: is_predicting=true and model_selection=false, then run "python main.py you-best-model (say cnndm.s2s.gpu4.epoch7.1)", go to "./deepmind/result/" and run $ROUGE$ myROUGE_Config.xml C, you will get the results.
  • The Perl Rouge package is enough, I did not use pyrouge.

Issues· 4 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

Pythonabstractive-summarizationcnn-dailymailpytorch

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月18日
分类编程语言
定价开源

> 相关工具

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言