mirror of
https://github.com/explosion/spaCy.git
synced 2024-12-25 17:36: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 |
||
---|---|---|
.. | ||
api | ||
models | ||
usage | ||
styleguide.mdx |