Skip to main content

Helpful tool to guess correct vietnamese sentence

Project description

Correct Vietnamese Sentence tool

Description

  • Adding accents vietnamese sentence tool

Intsallation

pip install vicorrect

Examples:

from vicorrect.model import CorrectVietnameseSentence

dataset = """
trời buồn trời đổ cơn mưa
chim khôn chim đậu cành đa"""

corrector = CorrectVietnameseSentence(verbose=False)
corrector.fit(dataset.splitlines())

testcase = [
    "troi buon",
    "com chim dau",
    "chim dau canh da troi do mua"
]

print(corrector.predict(testcase))

Author

Hanh. Le Van

Project details


Download files

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

Files for vicorrect, version 0.0.6
Filename, size File type Python version Upload date Hashes
Filename, size vicorrect-0.0.6.tar.gz (10.4 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page