BAHASA
Modul stemmer yang digunakan merupakan hasil porting dari Sastrawi dengan beberapa perubahan.
INSTALASI
Kita dapat menginstal bahasa dengan cara sebagai berikut:
pip install bahasa
PENGGUNAAN
from bahasa.stemmer import Stemmer
stemmer = Stemmer()
hasil = stemmer.stem("Saat ini pemerintah sedang memilih untuk menentukan rel yang digunakan.")
print(hasil)
saat ini perintah sedang pilih untuk tentu rel yang guna
hasil = stemmer.stem("membuang-buang waktu")
print(hasil)
buang waktu
# Menambahkan kata ke dalam kamus
stemmer.add_words("lauk", "nasi", "piring")
# Menghapus kata dalam kamus
stemmer.remove_words("ikan", "kucing")
TEST
python -m unittest discover
Metadata
Release files for bahasa 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 | Provenance | Actions |
|---|---|---|---|---|
| bahasa-1.0.1.tar.gz | 100.4 kB | Without provenance | Details for bahasa-1.0.1.tar.gz |
Release files / bahasa-1.0.1.tar.gz
| Download URL | bahasa-1.0.1.tar.gz |
|---|---|
| Size | 100.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5f389db50c861cfc6ef1426b4e253a761d3ffb4ec4a2b31cf3843da251f26eb3
|
|
BLAKE2b-256 checksum How to use checksums |
a0fb9a0b566bd9e9b27308189ab14b68985b2735437c4965e031ba6e7ada9923
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.9.7
|
Security for bahasa 1.0.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.