larsmans / seqlearn

Sequence learning toolkit for Python
http://larsmans.github.io/seqlearn/
MIT License
690 stars 101 forks source link

Fix installation #4

Closed kmike closed 11 years ago

kmike commented 11 years ago

With Cython extension StructuredPerceptron.fit is 2.5x faster than with vectorized numpy for my data, thanks!

But installation now requires numpy at build time, so without proper headers it fails. A simplified version of scikit-learn's setup.py numpy code is in this PR. I'm not sure what other numpy-related stuff does in scikit-learn setup.py; numpy.get_include() seems enough for seqlearn.

larsmans commented 11 years ago

Cherry-picked with some cosmetic changes as 8086ef8c70469f496830ed40196975e4ff8b8354. Thanks!