Skip to main content

Learn sparse linear models

Project description

https://travis-ci.org/honnibal/thinc.svg?branch=master

thinc is a Cython library for learning models with millions of parameters and dozens of classes. It drives http://honnibal.github.io/spaCy , a pipeline of very efficient NLP components. I’ve only used thinc from Cython; no real Python API is currently available.

Currently the only model implemented is the averaged perceptron, which is surprisingly competitive for these problems.

Despite the recent enthusiasm for deep learning, linear models can still perform very well, if the right feature engineering is applied. The key is adding good conjunction features — e.g., “next_word=X && next_next_word=Y”. For this, I have a helper-class thinc.features.Extractor, which you pass a list of templates, which then performs your feature extraction, given an array of atomic context items.

License

thinc was written as part of the development of spaCy, which is dual-licensed: GPL v3, or you can pay for a commercial license. thinc is licensed in the same way. For a commercial license, contact honnibal@gmail.com

Copyright (C) 2014 Matthew Honnibal

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>.

Project details


Release history Release notifications | RSS feed

This version

1.72

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

thinc-1.72.tar.gz (169.2 kB view details)

Uploaded Source

File details

Details for the file thinc-1.72.tar.gz.

File metadata

  • Download URL: thinc-1.72.tar.gz
  • Upload date:
  • Size: 169.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for thinc-1.72.tar.gz
Algorithm Hash digest
SHA256 6540cd0f33c6c018d5cde1e46fc72863158708ac34b204469dd3540ff1d1a11f
MD5 3f6112c4dc670c72d05674d9b114828b
BLAKE2b-256 8a9e5c36328255b20368d3f398c793dae01c4ec0d5b4b9090861a03c94d31fa7

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page