{ "info": { "author": "Feature Labs, Inc.", "author_email": "support@featurelabs.com", "bugtrack_url": null, "classifiers": [], "description": "# NLP Primitives\n\n[![CircleCI](https://circleci.com/gh/FeatureLabs/nlp_primitives.svg?style=svg&circle-token=d9f0b837238eed1f2b75be267f4963d4cb5a1284)](https://circleci.com/gh/FeatureLabs/nlp_primitives)\n\nnlp_primitives is a Python library with Natural Language Processing Primitives, intended for use with [Featuretools](https://github.com/Featuretools/featuretools). nlp_primitives allows you to make use of textual data in your machine learning pipeline in the same pipeline as the rest of your data.\n\n### Install\n```shell\npip install 'featuretools[nlp_primitives]'\n```\n## Calculating Features\nWith nlp_primitives primtives in `featuretools`, this is how to calculate the same feature.\n```python\nfrom featuretools.nlp_primitives import PolarityScore\n\ndata = [\"hello, this is a new featuretools library\",\n \"this will add new natural language primitives\",\n \"we hope you like it!\"]\n\npol = PolarityScore()\npol(data)\n```\n```\n0 0.365\n1 0.385\n2 1.000\ndtype: float64\n```\n## Combining Primitives\nIn `featuretools`, this is how to combine nlp_primitives primitives with built-in or other installed primitives.\n```python\nimport featuretools as ft\nfrom featuretools.nlp_primitives import TitleWordCount\nfrom featuretools.primitives import Mean\n\nentityset = ft.demo.load_retail()\nfeature_matrix, features = ft.dfs(entityset=entityset, target_entity='products', agg_primitives=[Mean], trans_primitives=[TitleWordCount])\n\nfeature_matrix.head(5)\n```\n```\n MEAN(order_products.quantity) MEAN(order_products.unit_price) MEAN(order_products.total) TITLE_WORD_COUNT(description)\nproduct_id\n10002 16.795918 1.402500 23.556276 3.0\n10080 13.857143 0.679643 8.989357 3.0\n10120 6.620690 0.346500 2.294069 2.0\n10123C 1.666667 1.072500 1.787500 3.0\n10124A 3.2000 0.6930 2.2176 5.0\n```\n## Feature Labs\n\n \"Featuretools\"\n\n\nNLP Primitives is an open source project created by [Feature Labs](https://www.featurelabs.com/). To see the other open source projects we're working on visit Feature Labs [Open Source](https://www.featurelabs.com/open). If building impactful data science pipelines is important to you or your business, please [get in touch](https://www.featurelabs.com/contact/).\n\n\n", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://www.featurelabs.com/", "keywords": "", "license": "BSD 3-clause", "maintainer": "", "maintainer_email": "", "name": "nlp-primitives", "package_url": "https://pypi.org/project/nlp-primitives/", "platform": "", "project_url": "https://pypi.org/project/nlp-primitives/", "project_urls": { "Homepage": "http://www.featurelabs.com/" }, "release_url": "https://pypi.org/project/nlp-primitives/0.2.3/", "requires_dist": [ "numpy (>=1.13.3)", "pandas (>=0.23.0)", "tqdm (>=4.19.2)", "featuretools (>=0.7.0)", "nltk (>=3.4)", "tensorflow (<=1.14.0)", "tensorflow-hub (<=0.4.0)", "scikit-learn (<0.21,>=0.20.0) ; python_version < \"3\"", "scikit-learn (>=0.20.0) ; python_version >= \"3\"" ], "requires_python": "", "summary": "", "version": "0.2.3" }, "last_serial": 5689283, "releases": { "0.0.0": [ { "comment_text": "", "digests": { "md5": "f9952c92a8c3dd331ee6d27b88bdb676", "sha256": "c1623472c04412a24b5ad684a9e3b6c11c4570fd9a38edd83230655c85614350" }, "downloads": -1, "filename": "nlp_primitives-0.0.0-py3-none-any.whl", "has_sig": false, "md5_digest": "f9952c92a8c3dd331ee6d27b88bdb676", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 17051469, "upload_time": "2019-08-14T13:50:40", "url": "https://files.pythonhosted.org/packages/8e/b2/833944adbd2024b2a46d75f4ddb59714fb5f938bc0113785024de0c9ae3a/nlp_primitives-0.0.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "106d9b887de48cfcb0a1e9b463a4f78c", "sha256": "1b0c01d0591721eec78d66dfeef75d21fc2b9966daa2144cd68669d5db5421ad" }, "downloads": -1, "filename": "nlp_primitives-0.0.0.tar.gz", "has_sig": false, "md5_digest": "106d9b887de48cfcb0a1e9b463a4f78c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 17042078, "upload_time": "2019-08-14T13:50:45", "url": "https://files.pythonhosted.org/packages/64/69/e11a9bc41a2c1db9263369e89247f1d67cabb8de0323744a92da65172c12/nlp_primitives-0.0.0.tar.gz" } ], "0.1.0": [ { "comment_text": "", "digests": { "md5": "3590ebd1b5e75316e1d6f2417b9d5728", "sha256": "16d74716d43d5a2470bde301158fc4a23ef1a73a645b82a40e763b00497a35e8" }, "downloads": -1, "filename": "nlp_primitives-0.1.0-py3-none-any.whl", "has_sig": false, "md5_digest": "3590ebd1b5e75316e1d6f2417b9d5728", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 21385, "upload_time": "2019-08-14T16:58:13", "url": "https://files.pythonhosted.org/packages/c5/e7/5b214425cce6eb9e6852166644b5e644121f78a825e6f95b40ff46fd7b4c/nlp_primitives-0.1.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "5d0cfa2cded574224cfbc75096a4d11d", "sha256": "b895c2cd1e5ecd38e85de027fc5ae4ffd4d52830202a4ec9be030c070a35dbd9" }, "downloads": -1, "filename": "nlp_primitives-0.1.0.tar.gz", "has_sig": false, "md5_digest": "5d0cfa2cded574224cfbc75096a4d11d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 11836, "upload_time": "2019-08-14T16:58:14", "url": "https://files.pythonhosted.org/packages/80/74/2d9a677c44bdef1f0115acf9f895f98048a25070721442c275e938e6711e/nlp_primitives-0.1.0.tar.gz" } ], "0.2.2": [ { "comment_text": "", "digests": { "md5": "c48f6e098a027976e77bf75bdc803351", "sha256": "2b87cd84603bad13c364ddd762dd8773ad86bf3e2ac0418a283e752ece92162c" }, "downloads": -1, "filename": "nlp_primitives-0.2.2-py3-none-any.whl", "has_sig": false, "md5_digest": "c48f6e098a027976e77bf75bdc803351", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 22462, "upload_time": "2019-08-15T14:20:14", "url": "https://files.pythonhosted.org/packages/6b/fc/590e1d24a84ed72d924b347933954afc829fc9d8d5488fb49a744e8c726c/nlp_primitives-0.2.2-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "1ac32e96a816c41b8fa95cb0a2aaa427", "sha256": "acc8014ae6a2c1c635242054f5a11f00cbae8d866323097e67d7b0687329d66c" }, "downloads": -1, "filename": "nlp_primitives-0.2.2.tar.gz", "has_sig": false, "md5_digest": "1ac32e96a816c41b8fa95cb0a2aaa427", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 13032, "upload_time": "2019-08-15T14:20:16", "url": "https://files.pythonhosted.org/packages/79/5a/1e33cb9e8d09521c176d6d766d13dc481bcf7db0356f225c9a608282efb4/nlp_primitives-0.2.2.tar.gz" } ], "0.2.3": [ { "comment_text": "", "digests": { "md5": "465f175ea1caf906b33de2cc8dafd860", "sha256": "cdfecda17ada01fc900907fc22655bfb06338cdbb22f75a0032db687a094110e" }, "downloads": -1, "filename": "nlp_primitives-0.2.3-py3-none-any.whl", "has_sig": false, "md5_digest": "465f175ea1caf906b33de2cc8dafd860", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 22462, "upload_time": "2019-08-16T19:56:50", "url": "https://files.pythonhosted.org/packages/0f/8d/2335d5b81f7e23dca52057a79b92cafad22b81caa29dbc48522020b00963/nlp_primitives-0.2.3-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "ba19dda0a32a431d0e85920ab5fab54c", "sha256": "6a92d5cc1549a3514d0a0a7660eff51cfb271c5854bbccaa75c854352ca0d5c7" }, "downloads": -1, "filename": "nlp_primitives-0.2.3.tar.gz", "has_sig": false, "md5_digest": "ba19dda0a32a431d0e85920ab5fab54c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 13018, "upload_time": "2019-08-16T19:56:51", "url": "https://files.pythonhosted.org/packages/6b/21/853f11ea966474589bd083f0efe6ce3280a3334ed88821cd284cbf1c6f42/nlp_primitives-0.2.3.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "465f175ea1caf906b33de2cc8dafd860", "sha256": "cdfecda17ada01fc900907fc22655bfb06338cdbb22f75a0032db687a094110e" }, "downloads": -1, "filename": "nlp_primitives-0.2.3-py3-none-any.whl", "has_sig": false, "md5_digest": "465f175ea1caf906b33de2cc8dafd860", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 22462, "upload_time": "2019-08-16T19:56:50", "url": "https://files.pythonhosted.org/packages/0f/8d/2335d5b81f7e23dca52057a79b92cafad22b81caa29dbc48522020b00963/nlp_primitives-0.2.3-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "ba19dda0a32a431d0e85920ab5fab54c", "sha256": "6a92d5cc1549a3514d0a0a7660eff51cfb271c5854bbccaa75c854352ca0d5c7" }, "downloads": -1, "filename": "nlp_primitives-0.2.3.tar.gz", "has_sig": false, "md5_digest": "ba19dda0a32a431d0e85920ab5fab54c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 13018, "upload_time": "2019-08-16T19:56:51", "url": "https://files.pythonhosted.org/packages/6b/21/853f11ea966474589bd083f0efe6ce3280a3334ed88821cd284cbf1c6f42/nlp_primitives-0.2.3.tar.gz" } ] }