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.0.9-py3-none-any.whl (61.0 MB view hashes)

Uploaded Python 3

Supported by

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