Giter VIP home page Giter VIP logo

nlp_toobox's Introduction

NLP TOOLBOX

通用的NLP工具,完成各类NLP任务。

目标是沉淀基础模型网络,具体使用时通过json配置文件来搭建整个训练、预测流程。

已支持任务类型

  • 分类任务
  • 相似匹配任务
  • 生成任务

任务示例-生成诗词

已训练模型(放到tasks/text_generation/output下即可) 链接: https://pan.baidu.com/s/1f6jBhzLwZfJSTwOCM1K4_w 提取码: 69f0

执行语句

cd tasks/text_generation
sh run.sh -g 4 -c examples/poem_bert_generation.json

效果示例

示例1:

示例1

示例2:

示例2

示例3:

示例3

示例4:

示例4

示例5:

示例5

TODO

  • 优化模型配置逻辑
  • 优化库文件结构
  • 当前beamsearch是通用的beamsearch,可定制古诗的beamsearch增加效果
  • 当前beamsearch出现部分少字古诗,score为1,需要debug一下

nlp_toobox's People

Contributors

hawchang avatar

Watchers

 avatar

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.