Skip to main content

Thai insurance Spell Check

Project description

Insurance Spell Check

Insurance Spell Check using Conditional Random Field (CRF)

Install Library

!pip install insurancespell

How to use

Input:

เงินเวรคืนของก็มาทัน
import insurancespellcheck
print(insurancespellcheck.check("เงินเวรคืนก็มาทัน"))

Output:

เงิน<คำผิด>เวรคืน</คำผิด><คำผิด>ก็มาทัน</คำผิด>

The words in <คำผิด>(*)</คำผิด> are wrongword in Insurance .

if you want to use auto_correct for change to correctword, use auto_correct=True in code.

import insurancespellcheck
print(insurancespellcheck.check("เงินเวรคืนก็มาทัน",auto_correct=True))

Output:

เงินเวนคืนของกรมธรรม์

if you want to use correct_word for get specific correct word, use correct_word=True in code.

import insurancespellcheck
print(insurancespellcheck.check("เงินเวรคืนก็มาทัน",correct_word=True))

Output:

['เวนคืน', 'กรมธรรม์']

License

Copyright 2023 Thiraphat Chorakhe

Project details


Download files

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

Source Distribution

insurancespell-0.0.9.tar.gz (75.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

insurancespell-0.0.9-py3-none-any.whl (74.3 kB view details)

Uploaded Python 3

File details

Details for the file insurancespell-0.0.9.tar.gz.

File metadata

  • Download URL: insurancespell-0.0.9.tar.gz
  • Upload date:
  • Size: 75.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.18

File hashes

Hashes for insurancespell-0.0.9.tar.gz
Algorithm Hash digest
SHA256 2ec2c90c72342763d5619797c24f166b0942f58b0cb051d8a62c525c6b87e389
MD5 b9f071acd8e4e57942cf170587165c29
BLAKE2b-256 c1c8c21280191098ac4ccdf98c54a12085b3444538f214bf3986d9d3c6f4d3d6

See more details on using hashes here.

File details

Details for the file insurancespell-0.0.9-py3-none-any.whl.

File metadata

  • Download URL: insurancespell-0.0.9-py3-none-any.whl
  • Upload date:
  • Size: 74.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.18

File hashes

Hashes for insurancespell-0.0.9-py3-none-any.whl
Algorithm Hash digest
SHA256 fdc3821bdb1ad1131063466294459bba95392c315fbdaaa758858850fb1b2ed2
MD5 e884b223bbbea6267d04f130b1869950
BLAKE2b-256 58c4ac7a9e0bd3df97c5fb64c84dcdfd5ef6f02f61a69e2f5f382ae4d47daa31

See more details on using hashes here.

Supported by

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