CRFSuite is an implementation of Conditional Random Fields (CRFs) for labeling sequential data.
-
CentOS / Redhat / Fedora:
yum groupinstall "Development Tools" yum install -y python-dev python-setuptools swig -
Ubuntu:
apt-get install build-essential -
OS X:
Get libLBFGS
git clone https://github.com/chbrown/liblbfgs
cd liblbfgs
./configure
make
sudo make install
This will write the following files (depending on your system's build defaults):
/usr/local/include/lbfgs.h
/usr/local/lib/liblbfgs-1.10.dylib
/usr/local/lib/liblbfgs.a
/usr/local/lib/liblbfgs.dylib -> liblbfgs-1.10.dylib
/usr/local/lib/liblbfgs.la
/usr/local/share/doc/liblbfgs/*
git clone https://github.com/chbrown/crfsuite
cd crfsuite
./configure
make
sudo make install
This will produce the following files (again, depending on your system's build defaults):
/usr/local/bin/crfsuite
/usr/local/include/crfsuite.h
/usr/local/include/crfsuite.hpp
/usr/local/include/crfsuite_api.hpp
/usr/local/lib/libcrfsuite.a
/usr/local/lib/libcrfsuite.la
/usr/local/lib/libcrfsuite-0.12.dylib
/usr/local/lib/libcrfsuite.dylib -> libcrfsuite-0.12.dylib
/usr/local/share/doc/crfsuite/*
cd swig/python
Build the SWIG links, but don't install them to site-packages yet:
python setup.py build_ext
You might need to tell Python where to look for the library, once it's all linked up, with the -R flag.
python setup.py build_ext -R /usr/local/lib
Install into the local Python's site-packages:
python setup.py install_lib
Or maybe:
sudo python setup.py install_lib
Uninstall:
make uninstall
Clean up after a build:
make clean
Remove all temporary files after a build:
make distclean
This program is distributed under the modified BSD license.
Copyright (c) 2007-2010, Naoaki Okazaki
Refer to COPYING for the precise descriptions of all licenses involved.
- Olivier Grisel
- Andreas Holzbach
- Baoli Li
- Yoshimasa Tsuruoka
- Hiroshi Manabe
- Riza Theresa B. Batista-Navarro
And of course, the original author:
- Naoaki Okazaki