Skip to main content

Python Thai Sentiment Analysis

Project description

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pythaisa-0.2.1-py3-none-any.whl (7.3 kB view details)

Uploaded Python 3

File details

Details for the file pythaisa-0.2.1-py3-none-any.whl.

File metadata

  • Download URL: pythaisa-0.2.1-py3-none-any.whl
  • Upload date:
  • Size: 7.3 kB
  • Tags: Python 3
  • Uploaded using 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

File hashes

Hashes for pythaisa-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 570c948878d889ce853f4b8d827821fb431ff0448dc94f5301c21d3f60b22ec8
MD5 2f3ea3924af833639c9be48eefabac16
BLAKE2b-256 28c0fcd42968c391d1c86b9f1219a2eec7596d09b776f5a1dcd353ff00ecf66b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page