Skip to main content

tokenize sentence in Thai

Project description

from cut_sent_thai import cut_sent
tokens = cut_sent("put your string here")

If you want the raw answer (which space is end of sentence (EOS) and which space is not)
tokens, raw = cut_sent("put your string here", return_raw=True)
raw is numpy array. value is 1 if that space position is EOS and 0 if it's not. Length of raw is the same as number of spaces in your text


change log version 0.0.8: now needs pytorch as dependency

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

cut_sent_thai-0.1.0-py3-none-any.whl (61.0 MB view details)

Uploaded Python 3

File details

Details for the file cut_sent_thai-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: cut_sent_thai-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 61.0 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.6.1 requests/2.24.0 setuptools/49.6.0.post20200814 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.7.7

File hashes

Hashes for cut_sent_thai-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 9c4a64b61fe3434f7d4fde988cac795f4fa273d3bb494901acc1e87c3c35b47f
MD5 b20e5084e8cbcbea65926cbee93d50df
BLAKE2b-256 5f0c1ad4be4ec478432b85fa78c6c1ac1592e0e544606dcad4468cec14f8b1ab

See more details on using hashes here.

Supported by

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