mirror of
https://github.com/explosion/spaCy.git
synced 2024-12-26 01:46:28 +03:00
updated code eg & description of contextualSpellCheck (#7096)
This commit is contained in:
parent
1e3a326e53
commit
4e80ef3abb
|
@ -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.')",
|
||||||
"",
|
"",
|
||||||
|
|
Loading…
Reference in New Issue
Block a user