tweetprep


Nametweetprep JSON
Version 2.0.5 PyPI version JSON
download
home_pagehttps://github.com/garain/tweetprep
SummaryA small preprocessor for tweets.
upload_time2020-10-18 10:33:23
maintainer
docs_urlNone
authorAvishek Garain
requires_python
licenseMIT
keywords tweet translate preprocess
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # tweetprep
-----------

A simple python library for preprocessing tweets to make them training
ready. Use it to preprocess the tweets before feeding them to Machine
Learning or Deep Learning models.

The code is Python 2 and 3 compatible.

# Installation
--------------

Fast install:
-------------

::

        pip install tweetprep

For a manual install get this package:
--------------------------------------

.. code:: bash

        $wget https://github.com/garain/tweetprep/archive/master.zip
        $unzip master.zip
        $rm master.zip
        $cd tweetprep-master

Install the package:
--------------------

::

        python setup.py install    

# Example
---------

.. code:: python

        from tweetprep import preprocess
        #from tweetprep import lang_translator

        tweet = "#COVID-19 is the worst pandemic @2020!! :,("
        # get translated tweet
        lang="es"
        print(preprocess.lang_translator.translate(tweet,dest=lang).text)

        # Get processed version of tweet
        print(preprocess.clean(tweet))

Here is the output:
-------------------

::

    # COVID-19 es la peor pandemia @ 2020!! :,(
    covid19 is the worst pandemic crying smiley


            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/garain/tweetprep",
    "name": "tweetprep",
    "maintainer": "",
    "docs_url": null,
    "requires_python": "",
    "maintainer_email": "",
    "keywords": "tweet translate preprocess",
    "author": "Avishek Garain",
    "author_email": "avishekgarain@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/0d/43/ce52f7c93a281c89c46bb6cf1968de3c765cd8f4cd6c4f55e4d56e0f8b9d/tweetprep-2.0.5.tar.gz",
    "platform": "",
    "description": "# tweetprep\n-----------\n\nA simple python library for preprocessing tweets to make them training\nready. Use it to preprocess the tweets before feeding them to Machine\nLearning or Deep Learning models.\n\nThe code is Python 2 and 3 compatible.\n\n# Installation\n--------------\n\nFast install:\n-------------\n\n::\n\n        pip install tweetprep\n\nFor a manual install get this package:\n--------------------------------------\n\n.. code:: bash\n\n        $wget https://github.com/garain/tweetprep/archive/master.zip\n        $unzip master.zip\n        $rm master.zip\n        $cd tweetprep-master\n\nInstall the package:\n--------------------\n\n::\n\n        python setup.py install    \n\n# Example\n---------\n\n.. code:: python\n\n        from tweetprep import preprocess\n        #from tweetprep import lang_translator\n\n        tweet = \"#COVID-19 is the worst pandemic @2020!! :,(\"\n        # get translated tweet\n        lang=\"es\"\n        print(preprocess.lang_translator.translate(tweet,dest=lang).text)\n\n        # Get processed version of tweet\n        print(preprocess.clean(tweet))\n\nHere is the output:\n-------------------\n\n::\n\n    # COVID-19 es la peor pandemia @ 2020!! :,(\n    covid19 is the worst pandemic crying smiley\n\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "A small preprocessor for tweets.",
    "version": "2.0.5",
    "split_keywords": [
        "tweet",
        "translate",
        "preprocess"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "md5": "5cb33ebb2e69ed897c6bfe3da7f89a22",
                "sha256": "c32f08e03913ac12c0f02bb518cbc5d11932f8d849ddfbb86d4562885af28657"
            },
            "downloads": -1,
            "filename": "tweetprep-2.0.5.tar.gz",
            "has_sig": false,
            "md5_digest": "5cb33ebb2e69ed897c6bfe3da7f89a22",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 4446,
            "upload_time": "2020-10-18T10:33:23",
            "upload_time_iso_8601": "2020-10-18T10:33:23.901870Z",
            "url": "https://files.pythonhosted.org/packages/0d/43/ce52f7c93a281c89c46bb6cf1968de3c765cd8f4cd6c4f55e4d56e0f8b9d/tweetprep-2.0.5.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2020-10-18 10:33:23",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "github_user": null,
    "github_project": "garain",
    "error": "Could not fetch GitHub repository",
    "lcname": "tweetprep"
}
        
Elapsed time: 0.17805s