Code Monkey home page Code Monkey logo

sequencetagging's Introduction

SequenceTagging

自然语言处理中的序列标注实现,包括

  • glove词向量处理
  • vocab生成
  • Bi-LSTM + CRF 模型
  • early stop
  • learning rate decay

模型采用了Bi-LSTM + CRF,请见 其中采用了字符和Bi-LSTM encoding组成了单词的向量表示,如下图所示

运行方式:

  1. make glove 下载glove 向量文件,并且进行解压
  2. make data 处理train/dev/test数据,构建vocab和trimmed_vector文件
  3. make train 构建模型,并进行训练,这里采用了学习率指数递减和early stop机制
  4. make evaluate 用训练得到的模型对test数据集进行测试

配置文件请见 config.cfg

sequencetagging's People

Contributors

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