Variable-order CRFs with structure learning
Branch: master
Clone or download
Latest commit 5f401f2 Oct 22, 2018
Type Name Latest commit message Commit time
Failed to load latest commit information.
vocrf () Oct 22, 2018
.gitignore public release. Mar 22, 2018
Makefile public release. Mar 22, 2018 update readme with the fix to Kyle Roth's installation issue. Mar 28, 2018 python 3 conversion Oct 22, 2018

Variable-order CRFs


We assume that you are running the Anaconda Python distribution. This code uses Python 2.

Type the following in your terminal and you should be good to go!

$ make
$ make install
$ make test

To grab some POS tagging data run, e.g., English UD data,

$ make data/UD/English

Here is an example invocation for training a model

$ python vocrf/pos/ --tag-type upos --lang English \
    --C .01 --budget 1500 \
    --inner-iterations 1 --outer-iterations 2 \
    --initial-order 0 --max-order 0 --context-count 5 \
    --dump /tmp/foo

(To quickly test the model on some real data, pass in the --quick flag, which will run on a small subset of data.)