updated code eg & description of contextualSpellCheck (#7096)

This commit is contained in:
Rajat 2021-02-17 17:56:43 +05:30 committed by GitHub
parent 1e3a326e53
commit 4e80ef3abb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2542,14 +2542,14 @@
"id": "contextualSpellCheck", "id": "contextualSpellCheck",
"title": "Contextual Spell Check", "title": "Contextual Spell Check",
"slogan": "Contextual spell correction using BERT (bidirectional representations)", "slogan": "Contextual spell correction using BERT (bidirectional representations)",
"description": "This package currently focuses on Out of Vocabulary (OOV) word or non-word error (NWE) correction using BERT model. The idea of using BERT was to use the context when correcting NWE. In the coming days, I would like to focus on RWE and optimising the package by implementing it in cython.", "description": "This package currently focuses on Out of Vocabulary (OOV) word or non-word error (NWE) correction using BERT model. The idea of using BERT was to use the context when correcting NWE.",
"github": "R1j1t/contextualSpellCheck", "github": "R1j1t/contextualSpellCheck",
"pip": "contextualSpellCheck", "pip": "contextualSpellCheck",
"code_example": [ "code_example": [
"import spacy", "import spacy",
"import contextualSpellCheck", "import contextualSpellCheck",
"", "",
"nlp = spacy.load('en')", "nlp = spacy.load('en_core_web_sm')",
"contextualSpellCheck.add_to_pipe(nlp)", "contextualSpellCheck.add_to_pipe(nlp)",
"doc = nlp('Income was $9.4 milion compared to the prior year of $2.7 milion.')", "doc = nlp('Income was $9.4 milion compared to the prior year of $2.7 milion.')",
"", "",