Code Monkey home page Code Monkey logo

berthub's Introduction

ToyBert

What's this:

如其名,本项目的初衷是希望大家能轻易把玩bert及其一系列变体形式。这个项目以huggingface的开源项目transformers为基础。旨在搭建自然语言处理比赛较为通用的框架,达到稍作修改便能运行目的,帮助大家更快的上手。

How to modify:

  • 如果你想要定义自己的模型,请在model.py中修改;
  • 如果要改变数据处理方式,请在tokenization.py中修改;
  • 如果要添加评价指标,请在metric.py中修改;
  • 加载数据的方式见utils.py,请根据赛题文件形式选择或自行修改

Example

👉🏿2021海华AI挑战赛·中文阅读理解·技术组baseline见example文件夹

环境要求

显卡Tesla T4 14G ;torch == 1.7.0 ;transformers == 4.3.2;

cd ../haihua
python run_classifier.py

随时接受issue,欢迎大家star !!

未完待续,Updating ... ...

Speed:

--version 1.0.0-- 以2020 CCF 问答匹配赛题做简单demo,支持sequence classification

添加海华阅读理解 QA baseline 2021年2月10日

随时接受issue,欢迎大家star !!转载请带上链接,谢谢!!

未完待续,Updating ... ...

berthub's People

Contributors

jiangxiaoshuaiya avatar

Watchers

James Cloos 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.