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
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9c4a64b61fe3434f7d4fde988cac795f4fa273d3bb494901acc1e87c3c35b47f
|
|
| MD5 |
b20e5084e8cbcbea65926cbee93d50df
|
|
| BLAKE2b-256 |
5f0c1ad4be4ec478432b85fa78c6c1ac1592e0e544606dcad4468cec14f8b1ab
|