spaCy/spacy/pipeline
Kabir Khan f6ed07b85c
Use nlp.pipe in EntityRuler for phrase patterns in add_patterns (#4931)
* Fix ent_ids and labels properties when id attribute used in patterns

* use set for labels

* sort end_ids for comparison in entity_ruler tests

* fixing entity_ruler ent_ids test

* add to set

* Run make_doc optimistically if using phrase matcher patterns.

* remove unused coveragerc I was testing with

* format

* Refactor EntityRuler.add_patterns to use nlp.pipe for phrase patterns. Improves speed substantially.

* Removing old add_patterns function

* Fixing spacing

* Make sure token_patterns loaded as well, before generator was being emptied in from_disk
2020-02-16 18:17:47 +01:00
..
__init__.py Merge changes from master 2019-08-21 14:18:52 +02:00
entityruler.py Use nlp.pipe in EntityRuler for phrase patterns in add_patterns (#4931) 2020-02-16 18:17:47 +01:00
functions.py Filter subtoken matches in merge_subtokens() (#4539) 2019-10-28 15:40:28 +01:00
hooks.py Component decorator and component analysis (#4517) 2019-10-27 13:35:49 +01:00
morphologizer.pyx Component decorator and component analysis (#4517) 2019-10-27 13:35:49 +01:00
pipes.pyx define pretrained_dims which is used by build_text_classifier (#5004) 2020-02-16 17:21:17 +01:00