izgzhen / hidden-markov-example

Example of HMM-based POS-tagging in Python

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Homework 2: HMMs

Author: Zhen Zhang

NOTE: the code assumes a data folder that contains twt.train.txt etc., but they are not included as part of the submission.

Usage

python models.py <ADD_K_CONST_val> <DISCOUNT_val> <testset-name>

For example

python models.py 0.5 0.1 dev

To turn on error analysis mode:

MODE=ERROR_ANALYSIS python models.py 0.5 0.1 dev

About

Example of HMM-based POS-tagging in Python

License:MIT License


Languages

Language:Python 100.0%