textblob


Nametextblob JSON
Version 0.15.1 PyPI version JSON
download
home_pagehttps://github.com/sloria/TextBlob
SummarySimple, Pythonic text processing. Sentiment analysis, part-of-speech tagging, noun phrase parsing, and more.
upload_time2018-01-20 23:51:01
maintainer
docs_urlNone
authorSteven Loria
requires_python
licenseMIT
keywords textblob nlp linguistics nltk pattern
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI
coveralls test coverage
            
TextBlob: Simplified Text Processing
====================================

.. image:: https://badge.fury.io/py/textblob.svg
    :target: http://badge.fury.io/py/textblob
    :alt: Latest version

.. image:: https://travis-ci.org/sloria/TextBlob.svg?branch=master
    :target: https://travis-ci.org/sloria/TextBlob
    :alt: Travis-CI

Homepage: `https://textblob.readthedocs.io/ <https://textblob.readthedocs.io/>`_

`TextBlob` is a Python (2 and 3) 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

    blob.translate(to="es")  # 'La amenaza titular de The Blob...'

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)
- Language translation and detection powered by Google Translate
- 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/.

Requirements
------------

- Python >= 2.7 or >= 3.4

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: http://www.clips.ua.ac.be/pattern
.. _NLTK: http://nltk.org/



            

Raw data

            {
    "maintainer": "", 
    "docs_url": null, 
    "requires_python": "", 
    "maintainer_email": "", 
    "cheesecake_code_kwalitee_id": null, 
    "keywords": "textblob,nlp,linguistics,nltk,pattern", 
    "upload_time": "2018-01-20 23:51:01", 
    "author": "Steven Loria", 
    "home_page": "https://github.com/sloria/TextBlob", 
    "github_user": "sloria", 
    "download_url": "https://pypi.python.org/packages/17/82/30cf0e956bfe747be4e4f15b4cb14bef43ee7e7d73cf3f2a16307b759b55/textblob-0.15.1.tar.gz", 
    "platform": "", 
    "version": "0.15.1", 
    "cheesecake_documentation_id": null, 
    "description": "\nTextBlob: Simplified Text Processing\n====================================\n\n.. image:: https://badge.fury.io/py/textblob.svg\n    :target: http://badge.fury.io/py/textblob\n    :alt: Latest version\n\n.. image:: https://travis-ci.org/sloria/TextBlob.svg?branch=master\n    :target: https://travis-ci.org/sloria/TextBlob\n    :alt: Travis-CI\n\nHomepage: `https://textblob.readthedocs.io/ <https://textblob.readthedocs.io/>`_\n\n`TextBlob` is a Python (2 and 3) 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    blob.translate(to=\"es\")  # 'La amenaza titular de The Blob...'\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- Language translation and detection powered by Google Translate\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\nRequirements\n------------\n\n- Python >= 2.7 or >= 3.4\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: http://www.clips.ua.ac.be/pattern\n.. _NLTK: http://nltk.org/\n\n\n", 
    "tox": true, 
    "lcname": "textblob", 
    "bugtrack_url": "", 
    "github": true, 
    "coveralls": true, 
    "name": "textblob", 
    "license": "MIT", 
    "travis_ci": true, 
    "github_project": "TextBlob", 
    "summary": "Simple, Pythonic text processing. Sentiment analysis, part-of-speech tagging, noun phrase parsing, and more.", 
    "split_keywords": [
        "textblob", 
        "nlp", 
        "linguistics", 
        "nltk", 
        "pattern"
    ], 
    "author_email": "sloria1@gmail.com", 
    "urls": [
        {
            "has_sig": false, 
            "upload_time": "2018-01-20T23:50:58", 
            "comment_text": "", 
            "python_version": "py2.py3", 
            "url": "https://pypi.python.org/packages/11/18/7f55c8be6d68ddc4036ffda5382ca51e23a1075987f708b9123712091af1/textblob-0.15.1-py2.py3-none-any.whl", 
            "md5_digest": "3865cfc491c1f671f56b54427fc28331", 
            "downloads": 0, 
            "filename": "textblob-0.15.1-py2.py3-none-any.whl", 
            "packagetype": "bdist_wheel", 
            "path": "11/18/7f55c8be6d68ddc4036ffda5382ca51e23a1075987f708b9123712091af1/textblob-0.15.1-py2.py3-none-any.whl", 
            "size": 631792
        }, 
        {
            "has_sig": false, 
            "upload_time": "2018-01-20T23:51:01", 
            "comment_text": "", 
            "python_version": "source", 
            "url": "https://pypi.python.org/packages/17/82/30cf0e956bfe747be4e4f15b4cb14bef43ee7e7d73cf3f2a16307b759b55/textblob-0.15.1.tar.gz", 
            "md5_digest": "4b1c5e19bfb8ba040ed89e4903ae593f", 
            "downloads": 0, 
            "filename": "textblob-0.15.1.tar.gz", 
            "packagetype": "sdist", 
            "path": "17/82/30cf0e956bfe747be4e4f15b4cb14bef43ee7e7d73cf3f2a16307b759b55/textblob-0.15.1.tar.gz", 
            "size": 631413
        }
    ], 
    "_id": null, 
    "cheesecake_installability_id": null
}