indoNLP
Bahasa | English
indoNLP adalah library python sederhana tanpa dependency tambahan yang bertujuan untuk memudahkan proyek NLP anda.
Installasi
indoNLP dapat diinstall dengan mudah dengan menggunakan pip:
$ pip install indoNLP
Quick Start
Mengakses Indonesian NLP Open Dataset
Mengakses Indonesian NLP Open Dataset dengan cepat dan mudah.
from indoNLP.dataset import Dataset
handler = Dataset("twitter-puisi")
data = handler.read()
# out: Data(name='main', part_of='twitter-puisi')
Mengecek kesimetrisan data, jika data bersifat simetrik maka data dapat ditabelisasi menggunakan pandas.DataFrame.
import pandas as pd
assert data.is_table(), "Data tidak simetris, tidak dapat ditabulasi!"
df = pd.DataFrame(data.data)
df.head()
# out:
# text
# 0 Hanya karena sapa itu.\nKau tikam rasamu.\nSis...
# 1 Sedang di antrian panjang\nPada sebuah penanti...
# 2 Jika kau bukan tempat awal untuk berlabuh, mak...
# 3 Setiap waktu,\nAku masih mendengar getar dawai...
# 4 Sebait rindu yang kau bacakan\nMasih terdengar...
Preprocessing Data Teks
Menerjemahkan emoji dan mengganti kata gaul (slang words).
from indoNLP.preprocessing import emoji_to_words, replace_slang, pipeline
pipe = pipeline([emoji_to_words, replace_slang])
pipe("library yg membara 🔥")
# out: "library yang membara !api!"
Development
Setup local dev environment. indoNLP menggunakan python-poetry
untuk packaging dan management dependencies.
$ make setup-dev
Metadata
Release files for indonlp 0.3.4
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 |
|---|---|---|---|---|
| indoNLP-0.3.4.tar.gz | 117.3 kB | Without provenance | Details for indoNLP-0.3.4.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| indoNLP-0.3.4-py3-none-any.whl | Python 3 | none | any | Details for indoNLP-0.3.4-py3-none-any.whl |
Total release size: 239.2 kB
Release files / indoNLP-0.3.4.tar.gz
| Download URL | indoNLP-0.3.4.tar.gz |
|---|---|
| Size | 117.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c09d48a9e2d0320c88b95ed285955f30fe2e5aee6719bf7110cab9e6491465d5
|
|
BLAKE2b-256 checksum How to use checksums |
1d684d1799809d3fbf7539f998af2ff6a5a43481ee7c4380aff87ecc7e43c38d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.13 CPython/3.8.10 Linux/5.10.16.3-microsoft-standard-WSL2
|
Release files / indoNLP-0.3.4-py3-none-any.whl
| Download URL | indoNLP-0.3.4-py3-none-any.whl |
|---|---|
| Size | 121.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
26050978c6bfcade606545e208278fa2ba98c50d7dc3db7b686df9b98a0e730f
|
|
BLAKE2b-256 checksum How to use checksums |
3b2eb314d4cfc8e3736e5c0ad0a5d8b876c1a1a254865e170848c0048a776880
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.13 CPython/3.8.10 Linux/5.10.16.3-microsoft-standard-WSL2
|
Security for indonlp 0.3.4
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.