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
Project details
Release history Release notifications | RSS feed
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
Close
Hashes for cut_sent_thai-0.0.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 066287be35b8a9126286063e24fc978d1857e6ccf69ec1996fee9a01e257e430 |
|
MD5 | 8852370ad9e7102295eae5c197332954 |
|
BLAKE2b-256 | 328d1cb084b8f78878bd233123f75fbf0acc5ddb92d256b35221466479edfdf3 |