mirror of
https://github.com/explosion/spaCy.git
synced 2025-07-30 10:00:04 +03:00
Make new _copy_examples
args kwonly
This commit is contained in:
parent
4f9101ee56
commit
8fcec52839
|
@ -2329,7 +2329,7 @@ class DisabledPipes(list):
|
||||||
|
|
||||||
|
|
||||||
def _copy_examples(
|
def _copy_examples(
|
||||||
examples: Iterable[Example], copy_x: bool = True, copy_y: bool = False
|
examples: Iterable[Example], *, copy_x: bool = True, copy_y: bool = False
|
||||||
) -> List[Example]:
|
) -> List[Example]:
|
||||||
"""Make a copy of a batch of examples, copying the predicted Doc as well.
|
"""Make a copy of a batch of examples, copying the predicted Doc as well.
|
||||||
This is used in contexts where we need to take ownership of the examples
|
This is used in contexts where we need to take ownership of the examples
|
||||||
|
|
Loading…
Reference in New Issue
Block a user