Python Thai Sentiment Analysis (PyThaiSA)
Python Thai sentiment analysis (For Dev only)
Install
$ pip install https://github.com/PyThaiNLP/thai_sentiment_analysis/archive/master.zip
Use
Google Colab : https://colab.research.google.com/drive/17y4tc69O6Z-dr1LbgR5FlPYZK46xCKbY
from pythaisa import *
datatrain=[("ฉันรักคุณ","love"),("ผมก็รักคุณเหมือนกัน","love"),("เกลียดคุณ","neg"),("เกลียดเหมือนกัน","neg")]
m=model(name="test",train_dataset=datatrain)
m.train()
print(m.predict("ฉันรักคุณ"))
Metadata
Release files for pythaisa 0.2.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pythaisa-0.2.1-py3-none-any.whl | Python 3 | none | any | Details |
Release files / pythaisa-0.2.1-py3-none-any.whl
| Download URL | pythaisa-0.2.1-py3-none-any.whl |
|---|---|
| Size | 7.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
570c948878d889ce853f4b8d827821fb431ff0448dc94f5301c21d3f60b22ec8
|
|
BLAKE2b-256 checksum How to use checksums |
28c0fcd42968c391d1c86b9f1219a2eec7596d09b776f5a1dcd353ff00ecf66b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.15.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.6.7
|