mirror of
https://github.com/explosion/spaCy.git
synced 2024-12-30 20:06:30 +03:00
b60b027927
* Add default to MorphAnalysis.get Similar to `dict`, allow a `default` option for `MorphAnalysis.get` for the user to provide a default return value if the field is not found. The default return value remains `[]`, which is not the same as `dict.get`, but is already established as this method's default return value with the return type `List[str]`. However the new `default` option does not enforce that the user-provided default is actually `List[str]`. * Restore test case |
||
---|---|---|
.. | ||
__init__.py | ||
test_add_entities.py | ||
test_array.py | ||
test_creation.py | ||
test_doc_api.py | ||
test_graph.py | ||
test_json_doc_conversion.py | ||
test_morphanalysis.py | ||
test_pickle_doc.py | ||
test_retokenize_merge.py | ||
test_retokenize_split.py | ||
test_span_group.py | ||
test_span.py | ||
test_token_api.py | ||
test_underscore.py |