mirror of
https://github.com/explosion/spaCy.git
synced 2025-08-07 13:44:55 +03:00
Add types to function
Co-authored-by: Sofie Van Landeghem <svlandeg@users.noreply.github.com>
This commit is contained in:
parent
2a77705b28
commit
3296aab7dd
|
@ -123,7 +123,7 @@ class Underscore:
|
||||||
return "._.", name, self._start, self._end
|
return "._.", name, self._start, self._end
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def _replace_keys(old_underscore, new_underscore):
|
def _replace_keys(old_underscore: "Underscore", new_underscore: "Underscore"):
|
||||||
"""
|
"""
|
||||||
This function is called by Span when its kb_id or label are re-assigned.
|
This function is called by Span when its kb_id or label are re-assigned.
|
||||||
It checks if any user_data is stored for this span and replaces the keys
|
It checks if any user_data is stored for this span and replaces the keys
|
||||||
|
|
Loading…
Reference in New Issue
Block a user