spaCy/spacy/cli
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
..
converters 💫 New system for error messages and warnings (#2163) 2018-04-03 15:50:31 +02:00
__init__.py Rename model command to init_model and fix formatting 2017-12-07 09:59:23 +01:00
_messages.py 💫 New system for error messages and warnings (#2163) 2018-04-03 15:50:31 +02:00
convert.py 💫 New system for error messages and warnings (#2163) 2018-04-03 15:50:31 +02:00
download.py 💫 New system for error messages and warnings (#2163) 2018-04-03 15:50:31 +02:00
evaluate.py 💫 New system for error messages and warnings (#2163) 2018-04-03 15:50:31 +02:00
info.py 💫 New system for error messages and warnings (#2163) 2018-04-03 15:50:31 +02:00
init_model.py 💫 New system for error messages and warnings (#2163) 2018-04-03 15:50:31 +02:00
link.py 💫 New system for error messages and warnings (#2163) 2018-04-03 15:50:31 +02:00
package.py 💫 New system for error messages and warnings (#2163) 2018-04-03 15:50:31 +02:00
profile.py Don't pass CLI command name as dummy argument 2018-01-04 21:33:47 +01:00
train.py 💫 New system for error messages and warnings (#2163) 2018-04-03 15:50:31 +02:00
validate.py 💫 New system for error messages and warnings (#2163) 2018-04-03 15:50:31 +02:00
vocab.py Don't pass CLI command name as dummy argument 2018-01-04 21:33:47 +01:00