Skip to main content

Library for stemming Indonesian (Bahasa) text

Project description

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 :

# 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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

Sastrawi-1.0.1.zip (211.7 kB view details)

Uploaded Source

Built Distribution

Sastrawi-1.0.1-py2.py3-none-any.whl (209.7 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file Sastrawi-1.0.1.zip.

File metadata

  • Download URL: Sastrawi-1.0.1.zip
  • Upload date:
  • Size: 211.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for Sastrawi-1.0.1.zip
Algorithm Hash digest
SHA256 62badb523e6e273f92eb6d53f5f3d4c0aa9ffcf1ceba69ab3dba5b7a0da02c56
MD5 a300c38adf8ab4ede1e28c4b066fce34
BLAKE2b-256 64e8abff41a085ec33b1a55f2065e0ebe1d6c9b6635559a94b3774c8c81e88aa

See more details on using hashes here.

File details

Details for the file Sastrawi-1.0.1-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for Sastrawi-1.0.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 ac3d1f442ae8f33fd0f59387eb33a1a5121241f028c318c60820f26bd032d93b
MD5 631ec7a9feedf8d1ecd49b5b26e19dd0
BLAKE2b-256 6f4bbab676953da3103003730b8fcdfadbdd20f333d4add10af949dd5c51e6ed

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page