GithubHelp home page GithubHelp logo

aloystx / bert_flask Goto Github PK

View Code? Open in Web Editor NEW

This project forked from luoyangbiao/bert_flask

0.0 0.0 0.0 977 KB

使用bert训练MRPC数据集,写成API接口模式以及简易的html界面

License: Apache License 2.0

Shell 0.17% Python 79.69% HTML 0.30% Jupyter Notebook 19.84%

bert_flask's Introduction

CSDN:https://blog.csdn.net/weixin_37735081/article/details/94222230

上传GLUE中的MRPC数据集,使用Bert fine-tuning方法进行训练 判断两个句子的相似度,返回相似度结果

使用方法:

  1. 下载代码
  2. 下载google模型预训练文件 (uncased、Based版本) https://storage.googleapis.com/bert_models/2018_10_18/uncased_L-12_H-768_A-12.zip
  3. bash classifier.sh 训练MRPC数据集
  4. python bert_api_3.py 或 python bert_predi_web.py 开启服务
  5. 使用postman发送json数据 或 在html页面使用

bert_flask's People

Contributors

luoyangbiao 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.