Sistem Pemeringkat Otomatis Berbasis Kata Sifat
Project description
Python SPOKS
Library Sistem Pemeringkat Otomatis Berbasis Kata Sifat untuk Bahasa Pemrograman Python
Cara Install
PySpoks dapat di-install menggunakan pip, dengan menjalankan perintah berikut di terminal/command prompt :
pip install PySpoks
Penggunaan
Jalankan baris-baris kode berikut di Python interactive terminal :
# import class
import spoks
# create objek
spoks = spoks.Spoks()
# preprocess text
sentence = 'Indonesia adalah negara yang luas, indah dan sejuk. Selain itu masyarakatnya ramah'
output = spoks.preproses(sentence)
print(output)
# {hasil : ['sejuk', 'luas', 'indah', 'ramah']}
# add kategori peratingan
kategori = ['Kualitas', 'Harga']
kat_in = spoks.input_kategori(kategori)
# add sub kategori peratingan
subs = ['bagus', 'menarik', 'kreatif']
sub_in = spoks.input_sub('Kualitas', subs)
# pemeringkat otomatis
output = spoks.preproses(sentence)
rat = spoks.spoks(output['hasil'])
print(rat)
# 'scv' = Nilai tiap Sub Kategori
# 'c' = Nilai tiap Kategori
# 'avg' = Rata-rata Nilai Kategori
# 'cr' = Rating Kategori
# 'fr' = Final Rating / Rating Keseluruhan
# 'aspek' = Kategori Penilaian
Lisensi
Lisensi Sastrawi Python adalah MIT License (MIT).
Project ini mengandung lemma kata sifat Bahasa Indonesia dari Tesaurus Bahasa Indonesia
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file PySpoks-0.0.4.tar.gz.
File metadata
- Download URL: PySpoks-0.0.4.tar.gz
- Upload date:
- Size: 101.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
43c457a154b575eb7af1e47112a987dfe803ed88054645c54359b985b65051a1
|
|
| MD5 |
0d2df38fd8c036c776b2370597bd4589
|
|
| BLAKE2b-256 |
bbb4ac6c569a188582e53824a10a6f317f6f2f024f21e543c971dac161f10192
|
File details
Details for the file PySpoks-0.0.4-py3-none-any.whl.
File metadata
- Download URL: PySpoks-0.0.4-py3-none-any.whl
- Upload date:
- Size: 106.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ef8a509227931cb94aef6f491871cfc204e4f510fbeead3cfcfb4a50b72ba84d
|
|
| MD5 |
fbcef9e7fff670392ef75286d50e93e4
|
|
| BLAKE2b-256 |
ad8d94a6df14c22a2ed51da2e06cabecde02a07887934b868e1cd5eeb9f61699
|