Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Fast structured perceptron sequential labeler
Python C++ C Shell
Branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.

Rungsted structed perceptron sequential tagger



python build_ext --inplace

Building with the above command happens in place, leaving the generated C and C++ files in the source directory for inspection. Changes in dependent modules are unfortunately not picked up by the build system. Whenever you need to start from a clean slate, use the supplied script to get rid of the generated files.

The build script requires a recent version of Cython. If you don't have Cython, it can be installed as below:

pip install cython


The repository contains a subset of the part-of-speech tagged Brown corpus. To run the structured perceptron labeler on this dataset, execute:

python src/ --train data/brown.train --test data/brown.test.vw

Rungsted's input format is closely modeled on the powerful and flexible format of Vowpal Wabbit, with the exception that Rungsted is perfectly fine with labels that are not integers.


Provided you have a working installation of NLTK, you can recreate the Brown dataset with this command.

python rungsted/datasets/ data/brown.train.vw data/brown.test.vw

There is also a script rungsted/datasets/ to convert from CONLL-formatted input to Rungsted

Something went wrong with that request. Please try again.