Sastrawi


NameSastrawi JSON
Version 1.0.1 PyPI version JSON
download
home_pagehttps://github.com/har07/sastrawi
SummaryLibrary for stemming Indonesian (Bahasa) text
upload_time2016-01-18 12:13:07
maintainer
docs_urlNone
authorHanif Amal Robbani
requires_python
licenseMIT
keywords linguistic stemming indonesian bahasa
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI
coveralls test coverage
            Sastrawi
========

| Sastrawi is a simple Python library which allows you to reduce
  inflected words in Indonesian Language (Bahasa Indonesia) to their
  base form (`stem`_).
| This is Python port of the original `Sastrawi`_ project written in
  PHP.

|Build Status|
|Coverage Status|

Installation
------------

Sastrawi can be installed via `pip`_, by running the following commands
in terminal/command prompt : ``pip install Sastrawi``

Example Usage
-------------

Run the following commands in *Python interactive terminal* :

.. code:: python

    # import Sastrawi package
    from Sastrawi.Stemmer.StemmerFactory import StemmerFactory

    # create stemmer
    factory = StemmerFactory()
    stemmer = factory.create_stemmer()

    # stem
    sentence = 'Perekonomian Indonesia sedang dalam pertumbuhan yang membanggakan'
    output   = stemmer.stem(sentence)

    print(output)
    # ekonomi indonesia sedang dalam tumbuh yang bangga

    print(stemmer.stem('Mereka meniru-nirukannya'))
    # mereka tiru

Demo
---------

Live demo : https://pysastrawi-demo.appspot.com/

Repository : https://github.com/har07/pystastrawi-demo

More Info
---------

-  `Sastrawi PHP Repository page`_

.. _stem: http://en.wikipedia.org/wiki/Stemming
.. _Sastrawi: https://github.com/sastrawi/sastrawi
.. _pip: https://docs.python.org/3.6/installing/index.html
.. _Sastrawi PHP Repository page: https://github.com/sastrawi/sastrawi

.. |Build Status| image:: https://travis-ci.org/har07/PySastrawi.svg?branch=master
   :target: https://travis-ci.org/har07/PySastrawi
.. |Coverage Status| image:: https://coveralls.io/repos/har07/sastrawi/badge.svg?branch=master&service=github
   :target: https://coveralls.io/github/har07/sastrawi?branch=master
            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/har07/sastrawi",
    "name": "Sastrawi",
    "maintainer": "",
    "docs_url": null,
    "requires_python": "",
    "maintainer_email": "",
    "keywords": "linguistic stemming indonesian bahasa",
    "author": "Hanif Amal Robbani",
    "author_email": "dev.har07@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/64/e8/abff41a085ec33b1a55f2065e0ebe1d6c9b6635559a94b3774c8c81e88aa/Sastrawi-1.0.1.zip",
    "platform": "UNKNOWN",
    "description": "Sastrawi\r\n========\r\n\r\n| Sastrawi is a simple Python library which allows you to reduce\r\n  inflected words in Indonesian Language (Bahasa Indonesia) to their\r\n  base form (`stem`_).\r\n| This is Python port of the original `Sastrawi`_ project written in\r\n  PHP.\r\n\r\n|Build Status|\r\n|Coverage Status|\r\n\r\nInstallation\r\n------------\r\n\r\nSastrawi can be installed via `pip`_, by running the following commands\r\nin terminal/command prompt : ``pip install Sastrawi``\r\n\r\nExample Usage\r\n-------------\r\n\r\nRun the following commands in *Python interactive terminal* :\r\n\r\n.. code:: python\r\n\r\n    # import Sastrawi package\r\n    from Sastrawi.Stemmer.StemmerFactory import StemmerFactory\r\n\r\n    # create stemmer\r\n    factory = StemmerFactory()\r\n    stemmer = factory.create_stemmer()\r\n\r\n    # stem\r\n    sentence = 'Perekonomian Indonesia sedang dalam pertumbuhan yang membanggakan'\r\n    output   = stemmer.stem(sentence)\r\n\r\n    print(output)\r\n    # ekonomi indonesia sedang dalam tumbuh yang bangga\r\n\r\n    print(stemmer.stem('Mereka meniru-nirukannya'))\r\n    # mereka tiru\r\n\r\nDemo\r\n---------\r\n\r\nLive demo : https://pysastrawi-demo.appspot.com/\r\n\r\nRepository : https://github.com/har07/pystastrawi-demo\r\n\r\nMore Info\r\n---------\r\n\r\n-  `Sastrawi PHP Repository page`_\r\n\r\n.. _stem: http://en.wikipedia.org/wiki/Stemming\r\n.. _Sastrawi: https://github.com/sastrawi/sastrawi\r\n.. _pip: https://docs.python.org/3.6/installing/index.html\r\n.. _Sastrawi PHP Repository page: https://github.com/sastrawi/sastrawi\r\n\r\n.. |Build Status| image:: https://travis-ci.org/har07/PySastrawi.svg?branch=master\r\n   :target: https://travis-ci.org/har07/PySastrawi\r\n.. |Coverage Status| image:: https://coveralls.io/repos/har07/sastrawi/badge.svg?branch=master&service=github\r\n   :target: https://coveralls.io/github/har07/sastrawi?branch=master",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "Library for stemming Indonesian (Bahasa) text",
    "version": "1.0.1",
    "split_keywords": [
        "linguistic",
        "stemming",
        "indonesian",
        "bahasa"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "6f4bbab676953da3103003730b8fcdfadbdd20f333d4add10af949dd5c51e6ed",
                "md5": "631ec7a9feedf8d1ecd49b5b26e19dd0",
                "sha256": "ac3d1f442ae8f33fd0f59387eb33a1a5121241f028c318c60820f26bd032d93b"
            },
            "downloads": -1,
            "filename": "Sastrawi-1.0.1-py2.py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "631ec7a9feedf8d1ecd49b5b26e19dd0",
            "packagetype": "bdist_wheel",
            "python_version": "py2.py3",
            "requires_python": null,
            "size": 209671,
            "upload_time": "2016-01-18T12:12:43",
            "upload_time_iso_8601": "2016-01-18T12:12:43.267450Z",
            "url": "https://files.pythonhosted.org/packages/6f/4b/bab676953da3103003730b8fcdfadbdd20f333d4add10af949dd5c51e6ed/Sastrawi-1.0.1-py2.py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "64e8abff41a085ec33b1a55f2065e0ebe1d6c9b6635559a94b3774c8c81e88aa",
                "md5": "a300c38adf8ab4ede1e28c4b066fce34",
                "sha256": "62badb523e6e273f92eb6d53f5f3d4c0aa9ffcf1ceba69ab3dba5b7a0da02c56"
            },
            "downloads": -1,
            "filename": "Sastrawi-1.0.1.zip",
            "has_sig": false,
            "md5_digest": "a300c38adf8ab4ede1e28c4b066fce34",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 211653,
            "upload_time": "2016-01-18T12:13:07",
            "upload_time_iso_8601": "2016-01-18T12:13:07.026315Z",
            "url": "https://files.pythonhosted.org/packages/64/e8/abff41a085ec33b1a55f2065e0ebe1d6c9b6635559a94b3774c8c81e88aa/Sastrawi-1.0.1.zip",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2016-01-18 12:13:07",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "github_user": "har07",
    "github_project": "sastrawi",
    "travis_ci": true,
    "coveralls": true,
    "github_actions": false,
    "lcname": "sastrawi"
}
        
Elapsed time: 0.04301s