Git Product home page Git Product logo

bertforner's Introduction

一个基于transformers的自定义命名实体识别模型示例

一、简介

该项目是一个基于transformers的命名实体识别模型。主要目标是提供一个代码示例,展示如果基于transformers提供的功能进行快速的模型开发。

二、代码结构

  • data:包含训练数据;
  • config.py:各类参数统一定义在该文件中;
  • data_utils.py:各类数据加载的函数和全局变量定义在该文件中;
  • train_utils.py:训练过程中需要的各种辅助函数或者类定义在该文件中;
  • model.py:模型结构定义在该文件中;
  • train.py:模型训练的流程和入口在该文件中;
  • notebook.ipynb:notebook版本的代码;

三、运行代码

python train.py

四、本项目博客

一个基于transformers的自定义命名实体识别模型示例

bertforner's People

Contributors

bqw18744018044 avatar

Watchers

James Cloos 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.