Skip to main content

Python Thai Sentiment Analysis

Project description

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

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.1.dev1-py3-none-any.whl (6.7 kB view details)

Uploaded Python 3

File details

Details for the file pythaisa-0.1.dev1-py3-none-any.whl.

File metadata

  • Download URL: pythaisa-0.1.dev1-py3-none-any.whl
  • Upload date:
  • Size: 6.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.7.3

File hashes

Hashes for pythaisa-0.1.dev1-py3-none-any.whl
Algorithm Hash digest
SHA256 6daf0ca532ece6ff893927a6a7f6bb648ca784bb603a2ce02e60acceb70b4077
MD5 c1b84692bc8708115bb2b351ca5cf45d
BLAKE2b-256 b31260d872a92b9dc369cb3554f5e7fa483a85c5da933b04984a85613964470a

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