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 hashes)

Uploaded Source

Built Distribution

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

Uploaded Python 3

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