Skip to content

Commit

Permalink
Improves code highlight (#63)
Browse files Browse the repository at this point in the history
* Improves code highlight

* fixed a broken test b/c of spacy model update

* spacy english md not in CI, changed to lg

Co-authored-by: R1j1t <22280243+R1j1t@users.noreply.github.com>
  • Loading branch information
sobolevn and R1j1t authored Aug 7, 2021
1 parent fc765d1 commit d94a932
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand All @@ -55,7 +55,7 @@ pip install contextualSpellCheck

Or you can add to spaCy pipeline manually!

```bash
```python
>>> import spacy
>>> import contextualSpellCheck
>>>
Expand All @@ -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
Expand Down
2 changes: 1 addition & 1 deletion contextualSpellCheck/tests/test_contextualSpellCheck.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit d94a932

Please sign in to comment.