Giter Site home page Giter Site logo

hubin858130 / lasertagger-chinese Goto Github PK

View Code? Open in Web Editor NEW

This project forked from 425776024/lasertagger-chinese

0.0 0.0 0.0 26.49 MB

lasertagger-chinese;lasertagger中文学习案例,案例数据,注释,shell运行

Shell 4.05% Python 95.95%

lasertagger-chinese's Introduction

LaserTagger-Chinese


主要工作

  • 对原来的代码(结构)进行了些整理(原来的是真乱)
  • 添加了些注释(我真看了它源码)
  • 舒服的shell运行案例(开箱即学)
  • 进行了自己的数据的训练,效果确实不错【可摘要、可文本复述、训练快、推断快】
  • 给出案例数据,方便学习
  • bert模型(RoBERTa-tiny-clue)直接上传了,也不大,直接下载

运行方式

  • 记得准备corpus/rephrase_corpus 那种数据(test.txt、train.txt、tune.txt)
  • 记得安装包:pip install requirements.txt
  • 其中的export python=/home/xxx/anaconda3/envs/tf15_py37/bin/python3记得改成你自己的python环境路径
  • 其中的export Root_Dir=xx记得改成你自己的代码根目录
# shell里面给出了参数注释
# 处理数据
sh 1.data_process.sh
# 训练
sh 2.train.sh
# 导出pb模型
sh 3.export.sh
# 预测
sh 4.predict.sh
# 计算预测后的分数
sh 5.eval_score.sh

PS

  • 用的这个轻量bert:RoBERTa-tiny-clue,很小很快,效果也不差

bert数据(RoBERTa-tiny-clue)直接放进来了,在bert_base/RoBERTa-tiny-clue 所以你不用去别的地方下载了

  • 如果想换成base bert,参数改成

谷歌的LaserTagger模型中configs/lasertagger_config.json 中那样的,因为RoBERTa-tiny-clue参数要小很多

lasertagger-chinese's People

Contributors

425776024 avatar dependabot[bot] 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.