"Kötü söz sahibine aittir."
-Anonim
Nedir?
sinkaf uygunsuz yorumların bulunmasını sağlayan bir python kütüphanesidir.
Farkı nedir?
Diğer algoritmalardan en büyük farkı, önceden belirlenmiş bir kelime listesinden cümlerlerdeki sözcükleri tek tek kontrol etmek yerine, makine öğrenmesi metodları kullanarak cümlenin genel anlamına bakabilmesidir. Aynı zamanda sinkaf baya bi hızlı!
Nasıl çalışıyor?
Arka planda modelimizi eğitmek için A corpus of Turkish offensive language verisetini kullanıyoruz. Bu veriseti 36,000+ twitter yorumunun hakaret içerip içermediğini gösteren, Türkçe ile makine öğrenmesi denemeleri yapmak isteyenler için fevkaledenin fevkinde bir kaynak! Kendilerine teşekkür ediyoruz. Velhasıl...
Nasıl yüklerim?
pip install sinkaf
Nasıl kullanırım?
from sinkaf import Sinkaf
snf = Sinkaf()
snf.tahmin(["çok tatlı çocuk", "çok şerefsiz çocuk"])
# array([False, True])
snf.tahminlik(["çok tatlı çocuk", "çok şerefsiz çocuk"])
# array([0.09811712, 0.86237484])
Alternatif model
BERT kullanılarak vektörize edilmiş veri üzerinde eğitilmiş modeller:
bert_pre: Küfürlü cümlelerin saptanmasında düşük duyarlılık yüksek kesinlikbert_rec: Küfürlü cümlelerin saptanmasında yüksek duyarlılık az kesinlik
snf = Sinkaf(model = "bert_pre")
snf.tahmin(["çok tatlı çocuk", "çok şerefsiz çocuk"])
# array([False, True])
snf.tahminlik(["çok tatlı çocuk", "çok şerefsiz çocuk"])
# array([0.26865139 0.85412345])
İyi çalışıyor mu?
Fena değil gibi ama tabi daha iyi kesinlikle olabilir.
Detaylar için:
Metadata
Release files for sinkaf 1.0.0
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 |
|---|---|---|---|---|
| sinkaf-1.0.0.tar.gz | 4.1 kB | Without provenance | Details for sinkaf-1.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| sinkaf-1.0.0-py3-none-any.whl | Python 3 | none | any | Details for sinkaf-1.0.0-py3-none-any.whl |
Total release size: 9.2 kB
Release files / sinkaf-1.0.0.tar.gz
| Download URL | sinkaf-1.0.0.tar.gz |
|---|---|
| Size | 4.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
26d7bef7ef5fcd731c4714227082c1e9e6f37c10877fa321436b31ace1e7e1a7
|
|
BLAKE2b-256 checksum How to use checksums |
f050f1ee7715291341d72a440066c131044bc5556365512950a4b4c0aca7b3c4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/52.0.0 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.9.1
|
Release files / sinkaf-1.0.0-py3-none-any.whl
| Download URL | sinkaf-1.0.0-py3-none-any.whl |
|---|---|
| Size | 5.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
8483165edf676d2ffe68c0fed52c248823ac203ce207404ec68fe1b04360a7b5
|
|
BLAKE2b-256 checksum How to use checksums |
275fcd9da7a4bb65d3453b696c23289bcb18f600f52836c3f6e61f6eaf9f1541
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/52.0.0 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.9.1
|
Security for sinkaf 1.0.0
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.