spaCy/spacy/tokens
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 * Break up tokens.pyx into tokens/doc.pyx, tokens/token.pyx, tokens/spans.pyx 2015-07-13 20:20:58 +02:00
__init__.py Tidy up and document Doc, Token and Span 2017-10-27 15:41:45 +02:00
_retokenize.pyx Add doc.retokenize() context manager (#2172) 2018-04-03 14:10:35 +02:00
doc.pxd Add doc.retokenize() context manager (#2172) 2018-04-03 14:10:35 +02:00
doc.pyx 💫 New system for error messages and warnings (#2163) 2018-04-03 15:50:31 +02:00
printers.py Tidy up util and helpers 2017-10-27 14:39:09 +02:00
span.pxd Add Span.to_array method 2017-08-19 12:20:45 +02:00
span.pyx 💫 New system for error messages and warnings (#2163) 2018-04-03 15:50:31 +02:00
token.pxd 💫 New system for error messages and warnings (#2163) 2018-04-03 15:50:31 +02:00
token.pyx 💫 New system for error messages and warnings (#2163) 2018-04-03 15:50:31 +02:00
underscore.py 💫 New system for error messages and warnings (#2163) 2018-04-03 15:50:31 +02:00