INNER CODE UNIT · Python
object
R1j1t/contextualSpellCheck · contextualSpellCheck/contextualSpellCheck.py:20
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
Args: