hc99's picture
Add files using upload-large-folder tool
e4b9a7b verified
# -*- coding: utf-8 -*-
# SPDX-FileCopyrightText: 2016-2025 PyThaiNLP Project
# SPDX-FileType: SOURCE
# SPDX-License-Identifier: Apache-2.0
"""
Spell checking and correction.
"""
__all__ = [
"DEFAULT_SPELL_CHECKER",
"NorvigSpellChecker",
"correct",
"correct_sent",
"spell",
"spell_sent",
]
from pythainlp.spell.pn import NorvigSpellChecker
DEFAULT_SPELL_CHECKER = NorvigSpellChecker()
# these imports are placed here to avoid circular imports
from pythainlp.spell.core import correct, correct_sent, spell, spell_sent