Code Monkey home page Code Monkey logo

fantasybert's Introduction

FantasyBert

English | 中文

Introduction

An easy-to-use framework for BERT models, with trainers, various NLP tasks and detailed annonations.

You can implement various NLP task conveniently with many functions such as adv training, fp16, gradient clip, r-drop, early stop, etc.

Installation

pip install fantasybert

The lastest verion is 0.1.3

Tutorials

tutorial

Task in examples

semantic text similarity

Datasets and Results

The datasets are downloaded on CLUE.

TNEWS IFLYTEK AFQMC CMNLI CMRC CLUENER
BERT_pub 56.84 59.43 74.07 80.42 73.95 78.82
BERT_our 56.63 .. 72.75 .. .. 79.669

For detailed results, please see here.

BERT_pub denotes the public results by CLUE, BERT_our denotes the results by FantasyBert. The pretrained model of clue and fantasybert is chinese-bert-wwm-ext model, and the predictions of test datasets is evaluated on CLUE, more results of clue public is here.

Others

Some code are edited on transformers(tokenizaiton) and fastnlp(trainer), I simplified the code and added some new functions.

The part of models directly uses the pretrain model in transformers, I tried write bert models in bert4pytorch, but due to time limit and lack of ability, it failed to achieve the quality and efficiency of transformers as did.

This project is not for commerical use and is only for private use.

fantasybert's People

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.