spaCy/spacy/tests/regression
Matthew Honnibal 6f5e308d17
Support negative examples in partial NER annotations (#8106)
* Support a cfg field in transition system

* Make NER 'has gold' check use right alignment for span

* Pass 'negative_samples_key' property into NER transition system

* Add field for negative samples to NER transition system

* Check neg_key in NER has_gold

* Support negative examples in NER oracle

* Test for negative examples in NER

* Fix name of config variable in NER

* Remove vestiges of old-style partial annotation

* Remove obsolete tests

* Add comment noting lack of support for negative samples in parser

* Additions to "neg examples" PR (#8201)

* add custom error and test for deprecated format

* add test for unlearning an entity

* add break also for Begin's cost

* add negative_samples_key property on Parser

* rename

* extend docs & fix some older docs issues

* add subclass constructors, clean up tests, fix docs

* add flaky test with ValueError if gold parse was not found

* remove ValueError if n_gold == 0

* fix docstring

* Hack in environment variables to try out training

* Remove hack

* Remove NER hack, and support 'negative O' samples

* Fix O oracle

* Fix transition parser

* Remove 'not O' from oracle

* Fix NER oracle

* check for spans in both gold.ents and gold.spans and raise if so, to prevent memory access violation

* use set instead of list in consistency check

Co-authored-by: svlandeg <sofie.vanlandeghem@gmail.com>
Co-authored-by: Sofie Van Landeghem <svlandeg@users.noreply.github.com>
2021-06-17 17:33:00 +10:00
..
__init__.py Revert #4334 2019-09-29 17:32:12 +02:00
test_issue1-1000.py begin_training -> initialize 2020-09-28 21:35:09 +02:00
test_issue1001-1500.py Tidy up and auto-format 2020-08-09 22:36:23 +02:00
test_issue1501-2000.py begin_training -> initialize 2020-09-28 21:35:09 +02:00
test_issue2001-2500.py begin_training -> initialize 2020-09-28 21:35:09 +02:00
test_issue2501-3000.py begin_training -> initialize 2020-09-28 21:35:09 +02:00
test_issue3001-3500.py Support negative examples in partial NER annotations (#8106) 2021-06-17 17:33:00 +10:00
test_issue3501-4000.py Support negative examples in partial NER annotations (#8106) 2021-06-17 17:33:00 +10:00
test_issue4001-4500.py Fix beam NER resizing (#6834) 2021-01-27 23:39:14 +11:00
test_issue4501-5000.py Set up GPU CI testing (#7293) 2021-04-22 14:58:29 +02:00
test_issue5001-5500.py Set up GPU CI testing (#7293) 2021-04-22 14:58:29 +02:00
test_issue5501-6000.py Set up GPU CI testing (#7293) 2021-04-22 14:58:29 +02:00
test_issue6001-6500.py Tidy up and auto-format 2021-01-30 12:52:33 +11:00
test_issue6501-7000.py Tidy up and auto-format 2021-02-13 12:55:56 +11:00
test_issue7019.py Fix issue #7019: Handle None scores in evaluate printer (#7026) 2021-02-11 16:45:23 +11:00
test_issue7029.py span.ent only returns first sentence (#7084) 2021-02-19 23:02:38 +11:00
test_issue7055.py Preserve sourced components in fill-config (fixes #7055) (#7058) 2021-02-14 14:02:14 +11:00
test_issue7056.py span.ent only returns first sentence (#7084) 2021-02-19 23:02:38 +11:00
test_issue7062.py only evaluate named entities for NEL if there is a corresponding gold span (#7074) 2021-02-22 11:06:50 +11:00
test_issue7065.py Bugfix/nel crossing sentence (#7630) 2021-04-12 18:08:01 +10:00
test_issue8168.py Fix bug from Entityruler: ent_ids returns None for phrases (#8169) 2021-05-31 18:38:53 +10:00
test_issue8190.py Address missing config overrides post load of models (#8208) 2021-05-31 18:36:52 +10:00
test_issue8216.py Don't add duplicate patterns all the time in EntityRuler (fix #8216) (#8246) 2021-06-03 09:05:26 +02:00