GithubHelp home page GithubHelp logo

crf's Introduction

CRF

Linear chain conditional random fields are implemented using numpy and mxnet. The code has been modified with reference to pytroch's crf tutorial. Achieve batch training instead of training with only one item of data. CRF is designed as a layer of neural networks that can be reused in mxet/gluon. If you do not use mxnet/gluon, you can download the crf.py file and modify the code to suit your application.

  • crf.py (Source code for CRF implementation)
  • test.py  (Directly test whether CRF is available)
  • test_crf_layer (Place the CRF as a custom layer in other models and test for availability)

Reference


使用 numpy 和 mxnet 实现了线性链条件随机场。代码参照 pytroch 的 crf 教程进行了修改。 实现了批量训练,而不再是只能一条一条数据的训练。并将 CRF 设计为在mxet/gluon中可以复用的神经网络的层。 如果你不使用mxnet/gluon,可以下载crf.py 文件将代码进行修改,以适用于你的程序。

  • crf.py (CRF 实现的源代码)
  • test.py  (直接测试 CRF 是否可用)
  • test_crf_layer (测试将CRF作为一个层放入其他神经网络模型是否可用)

crf's People

Contributors

vanewu avatar

Watchers

 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.