Skip to content
forked from bojone/SPACES

端到端的长本文摘要模型(法研杯2020司法摘要赛道)

Notifications You must be signed in to change notification settings

jiashenggu/SPACES

 
 

Repository files navigation

SPACES

端到端的长文本摘要模型(法研杯2020司法摘要赛道)。

博客介绍:https://kexue.fm/archives/8046

test on csl, THUCNews

运行

实验环境:tensorflow 1.14 + keras 2.3.1 + bert4keras 0.9.7

首先请在snippets.py中修改相关路径配置,然后再执行下述代码。

训练代码:

#! /bin/bash

python extract_convert.py
python extract_vectorize.py

for ((i=0; i<15; i++));
    do
        python extract_model.py $i
    done

python seq2seq_convert.py
python seq2seq_model.py

预测代码

from final import *
summary = predict(text, topk=3)
print(summary)

About

端到端的长本文摘要模型(法研杯2020司法摘要赛道)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 99.5%
  • Shell 0.5%