mirror of
https://github.com/explosion/spaCy.git
synced 2025-02-05 14:10:34 +03:00
small typo in code sample
This commit is contained in:
parent
1d6aec805d
commit
eccf6b1686
|
@ -1119,7 +1119,7 @@ entityruler = EntityRuler(nlp)
|
||||||
patterns = [{"label": "TEST", "pattern": str(i)} for i in range(100000)]
|
patterns = [{"label": "TEST", "pattern": str(i)} for i in range(100000)]
|
||||||
|
|
||||||
other_pipes = [p for p in nlp.pipe_names if p != "tagger"]
|
other_pipes = [p for p in nlp.pipe_names if p != "tagger"]
|
||||||
with nlp.disable_pipes(*disable_pipes):
|
with nlp.disable_pipes(*other_pipes):
|
||||||
entityruler.add_patterns(patterns)
|
entityruler.add_patterns(patterns)
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user