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
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 Distribution
insurancespell-0.0.9.tar.gz
(75.7 kB
view hashes)
Built Distribution
Close
Hashes for insurancespell-0.0.9-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fdc3821bdb1ad1131063466294459bba95392c315fbdaaa758858850fb1b2ed2 |
|
MD5 | e884b223bbbea6267d04f130b1869950 |
|
BLAKE2b-256 | 58c4ac7a9e0bd3df97c5fb64c84dcdfd5ef6f02f61a69e2f5f382ae4d47daa31 |