Giter Site home page Giter Site logo

perceptronixpointnever's Introduction

Perceptronix Point Never

Perceptronix Point Never (PPN) is an implementation of a part of speech tagger using a hidden Markov model, the averaged perceptron classifier, and a greedy decoding scheme. The classifier features are based loosely on those used by Ratnaparkhi 1996 and Collins 2002. Following Collins, the same features, including orthographic features, are used regardless of word frequency.

PPN has been tested on CPython 3.4 and PyPy3 (2.3.1, corresponding to Python 3.2); the latter is much, much faster. It requires three third-party packages: nltk and jsonpickle from PyPI and my own nlup library, available from GitHub; see requirements.txt for the versions used for testing.

Usage

usage: python -m PPN [-h] [-v] [-V] (-t TRAIN | -r READ)
                     (-u TAG | -w WRITE | -e EVALUATE) [-E EPOCHS] 
                     [-O ORDER]

Perceptronix Point Never, by Kyle Gorman

optional arguments:
  -h, --help            show this help message and exit
  -v, --verbose         enable verbose output
  -V, --really-verbose  even more verbose output
  -t TRAIN, --train TRAIN
                        training data
  -r READ, --read READ  read in serialized model
  -u TAG, --tag TAG     tag unlabeled data
  -w WRITE, --write WRITE
                        write out serialized model
  -e EVALUATE, --evaluate EVALUATE
                        evaluate on labeled data
  -E EPOCHS, --epochs EPOCHS
                        # of epochs (default: 10)
  -O ORDER, --order ORDER
                        Markov order (default: 2)

The included PPN-wsj.json.gz is a tagging model trained on the Wall St. Journal portion of the Penn Treebank.

For anything else, UTSL.

License

MIT License (BSD-like); see source.

What's with the name?

It is an homage to experimental musician Daniel Lopatin, who performs under the name Oneohtrix Point Never.

Bugs, comments?

Contact Kyle Gorman.

References

M. Collins. 2002. Discriminative training methods for hidden Markov models: Theory and experiments with perceptron algorithms. In EMNLP, 1-8.

A. Ratnaparkhi. 1996. A maximum entropy model for part-of-speech tagging. In EMNLP, 133-142.

perceptronixpointnever's People

Contributors

kylebgorman avatar

Watchers

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