Skip to main content

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

Download files

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

Source Distribution

bahasa-1.0.1.tar.gz (100.4 kB view details)

Uploaded Source

File details

Details for the file bahasa-1.0.1.tar.gz.

File metadata

  • Download URL: bahasa-1.0.1.tar.gz
  • Upload date:
  • Size: 100.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.7

File hashes

Hashes for bahasa-1.0.1.tar.gz
Algorithm Hash digest
SHA256 5f389db50c861cfc6ef1426b4e253a761d3ffb4ec4a2b31cf3843da251f26eb3
MD5 8d1530f954dfee4fe1e1b2f971be0506
BLAKE2b-256 a0fb9a0b566bd9e9b27308189ab14b68985b2735437c4965e031ba6e7ada9923

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

1.0.1 This release

1 file

1.0.0

1 file

0.0.7

1 file

0.0.5

1 file

0.0.4

1 file

0.0.3

1 file

0.0.2

1 file

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page