Skip to main content

Thai Spell Check

Project description

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.

Project details


Release history Release notifications | RSS feed

This version

0.2

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

thaispellcheck-0.2.tar.gz (238.7 kB view details)

Uploaded Source

Built Distribution

thaispellcheck-0.2-py3-none-any.whl (235.6 kB view details)

Uploaded Python 3

File details

Details for the file thaispellcheck-0.2.tar.gz.

File metadata

  • Download URL: thaispellcheck-0.2.tar.gz
  • Upload date:
  • Size: 238.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.16

File hashes

Hashes for thaispellcheck-0.2.tar.gz
Algorithm Hash digest
SHA256 b207af96858d601b52f106c7f47646979f29dd0d766ae4e1aeb05efb6430ad0c
MD5 c93619dc776007ce9fe0549dc5bba2a5
BLAKE2b-256 297a822590f1748bee401518422962ad052e2c81716d3894df2a6a306e797431

See more details on using hashes here.

File details

Details for the file thaispellcheck-0.2-py3-none-any.whl.

File metadata

  • Download URL: thaispellcheck-0.2-py3-none-any.whl
  • Upload date:
  • Size: 235.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.16

File hashes

Hashes for thaispellcheck-0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 a64791907cd890f618c679b04a938d7a30729501c7a773552db2461e0cab3885
MD5 81a2904caa9ebb562889117d97d1eed9
BLAKE2b-256 b491e53e6ec1ef29d5c711121fb8e26f6ce185b959f0d47966be8ec7bc70bc86

See more details on using hashes here.

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