Skip to content
chbrownPublic
forked from chokkan/crfsuite

About

CRFsuite: a fast implementation of Conditional Random Fields (CRFs)

Resources

Stars

3 stars

Watchers

0 watching

Forks

 
 

Repository files navigation

crfsuite

CRFSuite is an implementation of Conditional Random Fields (CRFs) for labeling sequential data.

Installation instructions

Get the requisite development environment

  • CentOS / Redhat / Fedora:

      yum groupinstall "Development Tools"
      yum install -y python-dev python-setuptools swig
    
  • Ubuntu:

      apt-get install build-essential
    
  • OS X:

    • Get Xcode from the Mac App Store.

    • Get homebrew and install the packages we'll need:

          brew install coreutils shtool swig
      
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/*

Install from source:

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/*

Install Python links:

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

Development

Uninstall:

make uninstall

Clean up after a build:

make clean

Remove all temporary files after a build:

make distclean

License

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.

Special thanks goes to...

  • Olivier Grisel
  • Andreas Holzbach
  • Baoli Li
  • Yoshimasa Tsuruoka
  • Hiroshi Manabe
  • Riza Theresa B. Batista-Navarro

And of course, the original author:

  • Naoaki Okazaki

About

CRFsuite: a fast implementation of Conditional Random Fields (CRFs)

Resources

Stars

3 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages