INNER CODE UNIT · Python

__init__

R1j1t/contextualSpellCheck · contextualSpellCheck/contextualSpellCheck.py:25

    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:
            vocab_path (str, optional): Vocabulary file path to be used by the
                                         model . Defaults to "".
            model_name (str, optional): Pretrained BERT model name. Defaults to
                                        "bert-base-cased".
            max_edit_dist (int, optional): Maximum edit distance between two

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…