diff --git a/README.md b/README.md index 91fb36a..bd2def2 100644 --- a/README.md +++ b/README.md @@ -35,7 +35,7 @@ pip install contextualSpellCheck ### How to load the package in spacy pipeline -```bash +```python >>> import contextualSpellCheck >>> import spacy >>> nlp = spacy.load("en_core_web_sm") @@ -55,7 +55,7 @@ pip install contextualSpellCheck Or you can add to spaCy pipeline manually! -```bash +```python >>> import spacy >>> import contextualSpellCheck >>> @@ -80,7 +80,7 @@ After adding `contextual spellchecker` in the pipeline, you use the pipeline nor ### Using the pipeline -```bash +```python >>> doc = nlp(u'Income was $9.4 milion compared to the prior year of $2.7 milion.') >>> >>> # Doc Extention diff --git a/contextualSpellCheck/tests/test_contextualSpellCheck.py b/contextualSpellCheck/tests/test_contextualSpellCheck.py index f89d92a..64bbe8c 100644 --- a/contextualSpellCheck/tests/test_contextualSpellCheck.py +++ b/contextualSpellCheck/tests/test_contextualSpellCheck.py @@ -519,7 +519,7 @@ def test_token_extension(): def test_warning(): - nlp = spacy.load("en_core_web_sm") + nlp = spacy.load("en_core_web_lg") if "contextual spellchecker" not in nlp.pipe_names: nlp.add_pipe("contextual spellchecker") # merge_ents = nlp.create_pipe("merge_entities")