Thai Spell Check
Thai Spell Check using Conditional Random Field (CRF) (Machine learning)
Requirements
- PyThaiNLP>=3.1
- sklearn-crfsuite
Using
import thaispellcheck
print(thaispellcheck.check("สวัสดีนะคับผม"))
result
สวัสดีนะ<คำผิด>คับ</คำผิด>ผม
The words in <คำผิด> are wrong words.
if you wan to use autocorrect to fix the mistake word, use autocorrect=True in check function.
import thaispellcheck
print(thaispellcheck.check("เราไปโรงเรยนกัน",autocorrect=True))
result
เราไปโรงเรียนกัน
License
Copyright 2019-2023 Wannaphong Phatthiyaphaibun
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Metadata
Release files for thaispellcheck 0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| thaispellcheck-0.2.tar.gz | 238.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| thaispellcheck-0.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 474.3 kB
Release files / thaispellcheck-0.2.tar.gz
| Download URL | thaispellcheck-0.2.tar.gz |
|---|---|
| Size | 238.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b207af96858d601b52f106c7f47646979f29dd0d766ae4e1aeb05efb6430ad0c
|
|
BLAKE2b-256 checksum How to use checksums |
297a822590f1748bee401518422962ad052e2c81716d3894df2a6a306e797431
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.16
|
Release files / thaispellcheck-0.2-py3-none-any.whl
| Download URL | thaispellcheck-0.2-py3-none-any.whl |
|---|---|
| Size | 235.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a64791907cd890f618c679b04a938d7a30729501c7a773552db2461e0cab3885
|
|
BLAKE2b-256 checksum How to use checksums |
b491e53e6ec1ef29d5c711121fb8e26f6ce185b959f0d47966be8ec7bc70bc86
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.16
|