Git Product home page Git Product logo

bert-chinese-classification's Introduction

-BERT-

代码用于食品安全评论数据集,若应用于其他数据集请自行更改util.py文件。

环境

  1. foodsafe_data放入源文件:train.csv,test_new.csv, sample.csv 直接从o2o比赛页面下载,无需改名 https://www.datafountain.cn/competitions/370

  2. foodsafe_data也保存结果文件:result.csv线上成绩 0.9277。

  3. output是模型保存路径和验证结果保存路径。

  4. 运行环境:python 3,pytorch 1.1,transformers 2.1.1。

  5. 运行方式:先运行split_dataset.py, 再修改run.bat中的model_name_or_path为你自己的bert预训练模型路径,再运行 run.bat 即可。

  6. GPU:1080 Ti (可通过降低序列长度和 batch size 来减弱对显存的要求)

bert-chinese-classification's People

Contributors

heklis avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

bert-chinese-classification'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.