GithubHelp home page GithubHelp logo

sequence-tagging's Introduction

sequence-tagging

sequence tagging

bert_model

https://huggingface.co/models 下载bert-base-chinese模型,解压在pretrained_models下

bert-base-chinese目录结构如下:

bert-base-chinese/
├── config.json
├── pytorch_model.bin
└── vocab.txt

训练10轮的评测结果

              precision    recall  f1-score   support

        game       0.78      0.84      0.81       295
     address       0.57      0.64      0.61       373
       movie       0.80      0.77      0.79       151
    position       0.76      0.82      0.79       433
        name       0.88      0.86      0.87       465
       scene       0.66      0.66      0.66       209
  government       0.74      0.84      0.79       247
organization       0.73      0.79      0.76       367
     company       0.75      0.82      0.78       378
        book       0.74      0.80      0.77       154

   micro avg       0.74      0.79      0.77      3072
   macro avg       0.75      0.79      0.77      3072

predict

run the demo_predict.py

predict

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.