Coder Social home page Coder Social logo

grseb9s / deepmemm Goto Github PK

View Code? Open in Web Editor NEW
4.0 1.0 3.0 224 KB

This is an implementation of a Deep Maximum Entropy Markov Model in PyTorch, that uses the Viterbi algorithm for inference to solve the task of Named Entity Recognition.

Python 100.00%

deepmemm's Introduction

Deep Maximum Entropy Markov Model

This is an implementation of a Deep Maximum Entropy Markov Model in PyTorch, that uses the Viterbi algorithm for inference to solve the task of Named Entity Recognition.

You must have pytorch, nltk, numpy, and scipy installed. It uses python 2.7.

You can run the program like so to load the pre trained parameters, and run inference using Viterbi. python deep_memm.py --best_parameters saved_model.pt

In order to train the model, do: python deep_memm.py

This will save the best parameters in a file model.pt and perform inference as well.

It does not use GPU, and takes 5 minutes on my Macbook Pro to run with the parameters loaded.

The F-Score is printed, and I get ~65.0. The accuracy of the neural network used is 90%, and it is a simple Feed Forward Neural Network with two Fully Connected Layers. The reason for this is to optimize performance.

deepmemm's People

Contributors

hockeybro12 avatar

Stargazers

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