Name | textblob JSON |
Version |
0.18.0.post0
JSON |
| download |
home_page | |
Summary | Simple, Pythonic text processing. Sentiment analysis, part-of-speech tagging, noun phrase parsing, and more. |
upload_time | 2024-02-15 20:39:50 |
maintainer | |
docs_url | None |
author | |
requires_python | >=3.8 |
license | |
keywords |
textblob
nlp
linguistics
nltk
pattern
|
VCS |
|
bugtrack_url |
|
requirements |
No requirements were recorded.
|
Travis-CI |
No Travis.
|
coveralls test coverage |
No coveralls.
|
TextBlob: Simplified Text Processing
====================================
.. image:: https://badgen.net/pypi/v/TextBlob
:target: https://pypi.org/project/textblob/
:alt: Latest version
.. image:: https://github.com/sloria/TextBlob/actions/workflows/build-release.yml/badge.svg
:target: https://github.com/sloria/TextBlob/actions/workflows/build-release.yml
:alt: Build status
Homepage: `https://textblob.readthedocs.io/ <https://textblob.readthedocs.io/>`_
`TextBlob` is a Python library for processing textual data. It provides a simple API for diving into common natural language processing (NLP) tasks such as part-of-speech tagging, noun phrase extraction, sentiment analysis, classification, translation, and more.
.. code-block:: python
from textblob import TextBlob
text = """
The titular threat of The Blob has always struck me as the ultimate movie
monster: an insatiably hungry, amoeba-like mass able to penetrate
virtually any safeguard, capable of--as a doomed doctor chillingly
describes it--"assimilating flesh on contact.
Snide comparisons to gelatin be damned, it's a concept with the most
devastating of potential consequences, not unlike the grey goo scenario
proposed by technological theorists fearful of
artificial intelligence run rampant.
"""
blob = TextBlob(text)
blob.tags # [('The', 'DT'), ('titular', 'JJ'),
# ('threat', 'NN'), ('of', 'IN'), ...]
blob.noun_phrases # WordList(['titular threat', 'blob',
# 'ultimate movie monster',
# 'amoeba-like mass', ...])
for sentence in blob.sentences:
print(sentence.sentiment.polarity)
# 0.060
# -0.341
TextBlob stands on the giant shoulders of `NLTK`_ and `pattern`_, and plays nicely with both.
Features
--------
- Noun phrase extraction
- Part-of-speech tagging
- Sentiment analysis
- Classification (Naive Bayes, Decision Tree)
- Tokenization (splitting text into words and sentences)
- Word and phrase frequencies
- Parsing
- `n`-grams
- Word inflection (pluralization and singularization) and lemmatization
- Spelling correction
- Add new models or languages through extensions
- WordNet integration
Get it now
----------
::
$ pip install -U textblob
$ python -m textblob.download_corpora
Examples
--------
See more examples at the `Quickstart guide`_.
.. _`Quickstart guide`: https://textblob.readthedocs.io/en/latest/quickstart.html#quickstart
Documentation
-------------
Full documentation is available at https://textblob.readthedocs.io/.
Project Links
-------------
- Docs: https://textblob.readthedocs.io/
- Changelog: https://textblob.readthedocs.io/en/latest/changelog.html
- PyPI: https://pypi.python.org/pypi/TextBlob
- Issues: https://github.com/sloria/TextBlob/issues
License
-------
MIT licensed. See the bundled `LICENSE <https://github.com/sloria/TextBlob/blob/master/LICENSE>`_ file for more details.
.. _pattern: https://github.com/clips/pattern/
.. _NLTK: http://nltk.org/
Raw data
{
"_id": null,
"home_page": "",
"name": "textblob",
"maintainer": "",
"docs_url": null,
"requires_python": ">=3.8",
"maintainer_email": "",
"keywords": "textblob,nlp,linguistics,nltk,pattern",
"author": "",
"author_email": "Steven Loria <sloria1@gmail.com>",
"download_url": "https://files.pythonhosted.org/packages/95/9b/8648f7ab89afb38de30aef9739a7f31491631635bd364042869162132bc4/textblob-0.18.0.post0.tar.gz",
"platform": null,
"description": "\nTextBlob: Simplified Text Processing\n====================================\n\n.. image:: https://badgen.net/pypi/v/TextBlob\n :target: https://pypi.org/project/textblob/\n :alt: Latest version\n\n.. image:: https://github.com/sloria/TextBlob/actions/workflows/build-release.yml/badge.svg\n :target: https://github.com/sloria/TextBlob/actions/workflows/build-release.yml\n :alt: Build status\n\n\nHomepage: `https://textblob.readthedocs.io/ <https://textblob.readthedocs.io/>`_\n\n`TextBlob` is a Python library for processing textual data. It provides a simple API for diving into common natural language processing (NLP) tasks such as part-of-speech tagging, noun phrase extraction, sentiment analysis, classification, translation, and more.\n\n\n.. code-block:: python\n\n from textblob import TextBlob\n\n text = \"\"\"\n The titular threat of The Blob has always struck me as the ultimate movie\n monster: an insatiably hungry, amoeba-like mass able to penetrate\n virtually any safeguard, capable of--as a doomed doctor chillingly\n describes it--\"assimilating flesh on contact.\n Snide comparisons to gelatin be damned, it's a concept with the most\n devastating of potential consequences, not unlike the grey goo scenario\n proposed by technological theorists fearful of\n artificial intelligence run rampant.\n \"\"\"\n\n blob = TextBlob(text)\n blob.tags # [('The', 'DT'), ('titular', 'JJ'),\n # ('threat', 'NN'), ('of', 'IN'), ...]\n\n blob.noun_phrases # WordList(['titular threat', 'blob',\n # 'ultimate movie monster',\n # 'amoeba-like mass', ...])\n\n for sentence in blob.sentences:\n print(sentence.sentiment.polarity)\n # 0.060\n # -0.341\n\n\nTextBlob stands on the giant shoulders of `NLTK`_ and `pattern`_, and plays nicely with both.\n\nFeatures\n--------\n\n- Noun phrase extraction\n- Part-of-speech tagging\n- Sentiment analysis\n- Classification (Naive Bayes, Decision Tree)\n- Tokenization (splitting text into words and sentences)\n- Word and phrase frequencies\n- Parsing\n- `n`-grams\n- Word inflection (pluralization and singularization) and lemmatization\n- Spelling correction\n- Add new models or languages through extensions\n- WordNet integration\n\nGet it now\n----------\n::\n\n $ pip install -U textblob\n $ python -m textblob.download_corpora\n\nExamples\n--------\n\nSee more examples at the `Quickstart guide`_.\n\n.. _`Quickstart guide`: https://textblob.readthedocs.io/en/latest/quickstart.html#quickstart\n\n\nDocumentation\n-------------\n\nFull documentation is available at https://textblob.readthedocs.io/.\n\nProject Links\n-------------\n\n- Docs: https://textblob.readthedocs.io/\n- Changelog: https://textblob.readthedocs.io/en/latest/changelog.html\n- PyPI: https://pypi.python.org/pypi/TextBlob\n- Issues: https://github.com/sloria/TextBlob/issues\n\nLicense\n-------\n\nMIT licensed. See the bundled `LICENSE <https://github.com/sloria/TextBlob/blob/master/LICENSE>`_ file for more details.\n\n.. _pattern: https://github.com/clips/pattern/\n.. _NLTK: http://nltk.org/\n\n",
"bugtrack_url": null,
"license": "",
"summary": "Simple, Pythonic text processing. Sentiment analysis, part-of-speech tagging, noun phrase parsing, and more.",
"version": "0.18.0.post0",
"project_urls": {
"Changelog": "https://textblob.readthedocs.io/en/latest/changelog.html",
"Issues": "https://github.com/sloria/TextBlob/issues",
"Source": "https://github.com/sloria/TextBlob"
},
"split_keywords": [
"textblob",
"nlp",
"linguistics",
"nltk",
"pattern"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "02075fd2945356dd839974d3a25de8a142dc37293c21315729a41e775b5f3569",
"md5": "871ddeea8bdcb4c404cd7bdbcf4ddc56",
"sha256": "dd0c7ec4eb7b9346ec0a3f136a63eba13e0f59890d2a693d3d6aeb8371949dca"
},
"downloads": -1,
"filename": "textblob-0.18.0.post0-py3-none-any.whl",
"has_sig": false,
"md5_digest": "871ddeea8bdcb4c404cd7bdbcf4ddc56",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.8",
"size": 626330,
"upload_time": "2024-02-15T20:39:47",
"upload_time_iso_8601": "2024-02-15T20:39:47.971935Z",
"url": "https://files.pythonhosted.org/packages/02/07/5fd2945356dd839974d3a25de8a142dc37293c21315729a41e775b5f3569/textblob-0.18.0.post0-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "959b8648f7ab89afb38de30aef9739a7f31491631635bd364042869162132bc4",
"md5": "9b03ff3ad3feda7883e51f83e21e6295",
"sha256": "8131c52c630bcdf61d04c359f939c98d5b836a01fba224d9e7ae22fc274e0ccb"
},
"downloads": -1,
"filename": "textblob-0.18.0.post0.tar.gz",
"has_sig": false,
"md5_digest": "9b03ff3ad3feda7883e51f83e21e6295",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.8",
"size": 639600,
"upload_time": "2024-02-15T20:39:50",
"upload_time_iso_8601": "2024-02-15T20:39:50.452736Z",
"url": "https://files.pythonhosted.org/packages/95/9b/8648f7ab89afb38de30aef9739a7f31491631635bd364042869162132bc4/textblob-0.18.0.post0.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-02-15 20:39:50",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "sloria",
"github_project": "TextBlob",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"tox": true,
"lcname": "textblob"
}