Giter VIP home page Giter VIP logo

pos-tagger-hmm's Introduction

##### README file for hmm-pos-tagger #####

This is a Hidden Markov Model part-of-speech tagger for Catalan. Program uses HMM for modeling/learning the tagged corpus and the Viterbi Algorithm for decoding. Laplace smoothing is used in learning to cover unseen words and tags transitions.

The accuracy of this utility is 94.23%

Source Code : There are 2 main python files.

Usage:
	1. hmmlearn3.py --> This is the python code to learn existing tagged corpus and generate the model for decoding. 

	Input: Give the input path of tagged corpus file (corpus -> catalan_corpus_train_tagged.txt)

	eg. > python hmmlearn3.py /path/to/input

	Output: This will output "hmmmodel.txt" file (sample model fileavailable in Sample Outputs folder).

	2. hmmdecode3.py --> This is the python code to decode untagged corpus and assign tags to them.

	Input: Give the input path of raw untagged corpus file (corpus -> catalan_corpus_dev_raw.txt). The code picks up the hmmmodel.txt internally.

	> python hmmdecode3.py /path/to/input

	Output: This will output "hmmoutput.txt" file (sample model fileavailable in Sample Outputs folder). You can compare this output with standard output file available in (corpus -> catalan_corpus_dev_tagged.txt) for accuracy calculation.

Note: Corpus folder also includes a small english corpus for small scale testing.

pos-tagger-hmm's People

Contributors

pavanlupane avatar

Watchers

James Cloos avatar  avatar

Forkers

sjs2109

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.