INNER CODE UNIT · Python
ContextualSpellCheck
R1j1t/contextualSpellCheck · contextualSpellCheck/contextualSpellCheck.py:18
class ContextualSpellCheck(object):
"""
Class object for Out Of Vocabulary(OOV) corrections
"""
name = "contextual spellchecker"
def __init__(
self,
nlp,
name,
vocab_path: str = "",
model_name: str = "bert-base-cased",
max_edit_dist: int = 10,
debug: bool = False,
performance: bool = False,
):
"""To create an object for this class. It does not require any special