GithubHelp home page GithubHelp logo

bert-crf-http-rpc's Introduction

bert-crf :https://github.com/lonePatient/BERT-NER-Pytorch

此项目让大家学会跑起bert,bert-crf 并提供出自己想要的服务

crf、bert等介绍

关注个人知乎,任何问题可以私信解决

知乎文字综述 个人主页

3:python3 -m venv venv 创建指定虚拟环境

4: pip install -r requirement.txt 下载python依赖包

5:下载训练数据,进行训练

数据下载: 链接: https://pan.baidu.com/s/1Hjyo27umeforEJD4zw_1UA 提取码: fvff 复制这段内容后打开百度网盘手机App,操作更方便哦

网盘包含了 bert预训练模型, 训练语料

项目目录结构如下: LICENSE README.md

init.py

callback/

datasets/

http_server.py

losses/

metrics/

models/

outputs/

prev_trained_model/

processors/

requirement.txt run_ner_crf.py run_ner_softmax.py run_ner_span.py scripts/ tools/ 从网盘下载 prev_trained_model 放入目录 从网盘下载 datasets放入目录

6:进行训练 sh scripts/run_ner_crf.sh

6:训练结束后,查看checkpoint文件是否保存

7:运行服务即可 python http_server.py

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.