textblob


Nametextblob JSON
Version 0.19.0 PyPI version JSON
download
home_pageNone
SummarySimple, Pythonic text processing. Sentiment analysis, part-of-speech tagging, noun phrase parsing, and more.
upload_time2025-01-13 23:03:07
maintainerNone
docs_urlNone
authorNone
requires_python>=3.9
licenseNone
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, 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": null,
    "name": "textblob",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.9",
    "maintainer_email": null,
    "keywords": "textblob, nlp, linguistics, nltk, pattern",
    "author": null,
    "author_email": "Steven Loria <sloria1@gmail.com>",
    "download_url": "https://files.pythonhosted.org/packages/63/a1/31fc6a5e9e46f2d84f72f12048588feac5464486e526dbfcc4719569cd3e/textblob-0.19.0.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, 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": null,
    "summary": "Simple, Pythonic text processing. Sentiment analysis, part-of-speech tagging, noun phrase parsing, and more.",
    "version": "0.19.0",
    "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": "1ed640aa5aead775582ea0cf35870e5a3f16fab4b967f1ad2debe675f673f923",
                "md5": "9592840ceae705fd2bda8ccea221874f",
                "sha256": "af6b8827886f1ee839a625f4865e5abb1584eae8db2259627b33a6a0b02ef19d"
            },
            "downloads": -1,
            "filename": "textblob-0.19.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "9592840ceae705fd2bda8ccea221874f",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.9",
            "size": 624280,
            "upload_time": "2025-01-13T23:03:01",
            "upload_time_iso_8601": "2025-01-13T23:03:01.034250Z",
            "url": "https://files.pythonhosted.org/packages/1e/d6/40aa5aead775582ea0cf35870e5a3f16fab4b967f1ad2debe675f673f923/textblob-0.19.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "63a131fc6a5e9e46f2d84f72f12048588feac5464486e526dbfcc4719569cd3e",
                "md5": "9f8ff6343101c38bfebcd3cf5bacb311",
                "sha256": "0a3d06a47cf7759441da3418c4843aed3797a998beba2108c6245a2020f83b01"
            },
            "downloads": -1,
            "filename": "textblob-0.19.0.tar.gz",
            "has_sig": false,
            "md5_digest": "9f8ff6343101c38bfebcd3cf5bacb311",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.9",
            "size": 637872,
            "upload_time": "2025-01-13T23:03:07",
            "upload_time_iso_8601": "2025-01-13T23:03:07.352758Z",
            "url": "https://files.pythonhosted.org/packages/63/a1/31fc6a5e9e46f2d84f72f12048588feac5464486e526dbfcc4719569cd3e/textblob-0.19.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2025-01-13 23:03:07",
    "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"
}
        
Elapsed time: 0.40718s