pythaisa

Python Thai Sentiment Analysis


Keywords
NLP, natural, language, processing, text, analytics, ThaiNLP, localization, sentiment-analysis, thai, thai-language, thai-nlp
License
Apache-2.0
Install
pip install pythaisa==0.2.1

Documentation

Python Thai Sentiment Analysis (PyThaiSA)

Build Status Coverage Status

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("ฉันรักคุณ"))