spaCy/spacy/syntax
Ines Montani 3141e04822
💫 New system for error messages and warnings (#2163)
* Add spacy.errors module

* Update deprecation and user warnings

* Replace errors and asserts with new error message system

* Remove redundant asserts

* Fix whitespace

* Add messages for print/util.prints statements

* Fix typo

* Fix typos

* Move CLI messages to spacy.cli._messages

* Add decorator to display error code with message

An implementation like this is nice because it only modifies the string when it's retrieved from the containing class – so we don't have to worry about manipulating tracebacks etc.

* Remove unused link in spacy.about

* Update errors for invalid pipeline components

* Improve error for unknown factories

* Add displaCy warnings

* Update formatting consistency

* Move error message to spacy.errors

* Update errors and check if doc returned by component is None
2018-04-03 15:50:31 +02:00
..
__init__.pxd * Work on greedy parser 2014-12-16 22:46:55 +11:00
__init__.py * Work on greedy parser 2014-12-16 22:46:55 +11:00
_beam_utils.pyx 💫 New system for error messages and warnings (#2163) 2018-04-03 15:50:31 +02:00
_state.pxd Fix bug in 8-token parser features 2017-10-28 23:01:35 +00:00
_state.pyx Tidy up syntax 2017-10-27 19:45:57 +02:00
arc_eager.pxd WIP on stringstore change. 27 failures 2017-05-28 14:06:40 +02:00
arc_eager.pyx 💫 New system for error messages and warnings (#2163) 2018-04-03 15:50:31 +02:00
ner.pxd WIP on stringstore change. 27 failures 2017-05-28 14:06:40 +02:00
ner.pyx 💫 New system for error messages and warnings (#2163) 2018-04-03 15:50:31 +02:00
nn_parser.pxd Fix bias in parser 2017-10-19 18:42:11 +02:00
nn_parser.pyx 💫 New system for error messages and warnings (#2163) 2018-04-03 15:50:31 +02:00
nonproj.pxd integrated pseudo-projective parsing into parser 2016-03-01 10:09:08 +01:00
nonproj.pyx 💫 New system for error messages and warnings (#2163) 2018-04-03 15:50:31 +02:00
stateclass.pxd Fix memory leak in beam parser 2017-11-14 02:11:40 +01:00
stateclass.pyx Fix memory leak in beam parser 2017-11-14 02:11:40 +01:00
transition_system.pxd WIP on stringstore change. 27 failures 2017-05-28 14:06:40 +02:00
transition_system.pyx 💫 New system for error messages and warnings (#2163) 2018-04-03 15:50:31 +02:00