mirror of
https://github.com/explosion/spaCy.git
synced 2025-07-10 16:22:29 +03:00
widen type to iterable
This commit is contained in:
parent
e79ade4252
commit
975e9d44f4
|
@ -1,4 +1,4 @@
|
|||
from typing import Any, Callable, Dict, Iterable, List, Optional, Sequence, Tuple
|
||||
from typing import Any, Callable, Dict, Iterable, List, Optional, Tuple
|
||||
|
||||
from ..tokens import Doc, Span
|
||||
from ..vocab import Vocab
|
||||
|
@ -47,10 +47,10 @@ class Example:
|
|||
def get_aligned_parse(self, projectivize=True): ...
|
||||
def get_aligned_sent_starts(self): ...
|
||||
def get_aligned_spans_x2y(
|
||||
self, x_spans: Sequence[Span], allow_overlap=False
|
||||
self, x_spans: Iterable[Span], allow_overlap=False
|
||||
) -> List[Span]: ...
|
||||
def get_aligned_spans_y2x(
|
||||
self, y_spans: Sequence[Span], allow_overlap=False
|
||||
self, y_spans: Iterable[Span], allow_overlap=False
|
||||
) -> List[Span]: ...
|
||||
def get_aligned_ents_and_ner(self) -> Tuple[List[Span], List[str]]: ...
|
||||
def get_aligned_ner(self) -> List[str]: ...
|
||||
|
|
Loading…
Reference in New Issue
Block a user