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.
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
Metadata
Release files for Sastrawi 1.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| Sastrawi-1.0.1.zip | 211.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| Sastrawi-1.0.1-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details |
Total release size: 421.3 kB
Release files / Sastrawi-1.0.1.zip
| Download URL | Sastrawi-1.0.1.zip |
|---|---|
| Size | 211.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
62badb523e6e273f92eb6d53f5f3d4c0aa9ffcf1ceba69ab3dba5b7a0da02c56
|
|
BLAKE2b-256 checksum How to use checksums |
64e8abff41a085ec33b1a55f2065e0ebe1d6c9b6635559a94b3774c8c81e88aa
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / Sastrawi-1.0.1-py2.py3-none-any.whl
| Download URL | Sastrawi-1.0.1-py2.py3-none-any.whl |
|---|---|
| Size | 209.7 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
ac3d1f442ae8f33fd0f59387eb33a1a5121241f028c318c60820f26bd032d93b
|
|
BLAKE2b-256 checksum How to use checksums |
6f4bbab676953da3103003730b8fcdfadbdd20f333d4add10af949dd5c51e6ed
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |