Code Monkey home page Code Monkey logo

sumandtitle's Introduction

sumandtitle

使用bert-seq2seq-mastter+pytorch+flask+vue实现内容摘要和标题申城 介绍 使用bert-seq2seq-mastter+pytorch+flask+vue实现内容摘要和标题申城

软件架构

web:vue+flask 深度学习:pytorch+bert-seq2seq-mastter 标题生成使用t5model 内容摘要使用:RoBERTa

安装教程

解压 flask 包,然后进入 flask 目录下,命令行输入 pip install -r requirements.txt 安装依赖

进入 flask 目录下命令行输入 python app.py

浏览器输入:http://127.0.0.1:3000/

使用说明

智能创作模块只支持json文件的读入,且每个json文件只能放一个文章内容 文件模板 [ { "id": 1, "content": "文章内容" } ]

可能存在跨域问题待解决

所需文件

1、需要自己的训练集 2、最好设置预训练模型 3、可能存在跨域问题待解决 4、模型训练: roberta_auto_title_train.py t5_auto_title_train.py 两个py文件是训练文件 5、下载相应的训练集和模型,然后进行训练,训练完成就可以进行推理

sumandtitle's People

Contributors

manchocolate avatar

Watchers

 avatar

sumandtitle's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.