{ "info": { "author": "Lars Buitinck", "author_email": "larsmans@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "Intended Audience :: Developers", "Intended Audience :: Science/Research", "License :: OSI Approved :: MIT License", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.3", "Topic :: Scientific/Engineering", "Topic :: Scientific/Engineering :: Artificial Intelligence", "Topic :: Scientific/Engineering :: Information Analysis", "Topic :: Text Processing" ], "description": ".. -*- mode: rst -*-\n\nseqlearn\n========\n\nseqlearn is a sequence classification toolkit for Python. It is designed to\nextend `scikit-learn `_ and offer as similar as\npossible an API.\n\n\nCompiling and installing\n------------------------\n\nGet NumPy >=1.6, SciPy >=0.11, Cython >=0.20.2 and a recent version of\nscikit-learn. Then issue::\n\n python setup.py install\n\nto install seqlearn.\n\nIf you want to use seqlearn from its source directory without installing,\nyou have to compile first::\n\n python setup.py build_ext --inplace\n\n\nGetting started\n---------------\n\nThe easiest way to start using seqlearn is to fetch a dataset in CoNLL 2000\nformat. Define a task-specific feature extraction function, e.g.::\n\n >>> def features(sequence, i):\n ... yield \"word=\" + sequence[i].lower()\n ... if sequence[i].isupper():\n ... yield \"Uppercase\"\n ...\n\nLoad the training file, say ``train.txt``::\n\n >>> from seqlearn.datasets import load_conll\n >>> X_train, y_train, lengths_train = load_conll(\"train.txt\", features)\n\nTrain a model::\n\n >>> from seqlearn.perceptron import StructuredPerceptron\n >>> clf = StructuredPerceptron()\n >>> clf.fit(X_train, y_train, lengths_train)\n\nCheck how well you did on a validation set, say ``validation.txt``::\n\n >>> X_test, y_test, lengths_test = load_conll(\"validation.txt\", features)\n >>> from seqlearn.evaluation import bio_f_score\n >>> y_pred = clf.predict(X_test, lengths_test)\n >>> print(bio_f_score(y_test, y_pred))\n\nFor more information, see the `documentation\n`_.\n\n\n|Travis|_\n\n.. |Travis| image:: https://api.travis-ci.org/larsmans/seqlearn.png?branch=master\n.. _Travis: https://travis-ci.org/larsmans/seqlearn\n", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/larsmans/seqlearn", "keywords": null, "license": "MIT", "maintainer": null, "maintainer_email": null, "name": "seqlearn", "package_url": "https://pypi.org/project/seqlearn/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/seqlearn/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/larsmans/seqlearn" }, "release_url": "https://pypi.org/project/seqlearn/0.2/", "requires_dist": null, "requires_python": null, "summary": "Sequence learning toolkit", "version": "0.2" }, "last_serial": 1678560, "releases": { "0.2": [ { "comment_text": "", "digests": { "md5": "48a5bdc466349f2289f039893bc88b54", "sha256": "1743087499ad25394a2f539edf0105271d3bf5cca8a4ca7b73f9fbf1518f4126" }, "downloads": -1, "filename": "seqlearn-0.2.tar.gz", "has_sig": false, "md5_digest": "48a5bdc466349f2289f039893bc88b54", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 557354, "upload_time": "2015-08-15T09:04:38", "url": "https://files.pythonhosted.org/packages/25/2c/95da36839f647a6b15da1fd10f68d755c7fca549c92aabb3ff734f5c682c/seqlearn-0.2.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "48a5bdc466349f2289f039893bc88b54", "sha256": "1743087499ad25394a2f539edf0105271d3bf5cca8a4ca7b73f9fbf1518f4126" }, "downloads": -1, "filename": "seqlearn-0.2.tar.gz", "has_sig": false, "md5_digest": "48a5bdc466349f2289f039893bc88b54", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 557354, "upload_time": "2015-08-15T09:04:38", "url": "https://files.pythonhosted.org/packages/25/2c/95da36839f647a6b15da1fd10f68d755c7fca549c92aabb3ff734f5c682c/seqlearn-0.2.tar.gz" } ] }