mirror of
https://github.com/explosion/spaCy.git
synced 2025-04-22 10:02:01 +03:00
fix call
This commit is contained in:
parent
eb544903ec
commit
62871abac9
|
@ -34,7 +34,7 @@ def noun_chunks(doclike: Union[Doc, Span]) -> Iterator[Tuple[int, int, int]]:
|
|||
return right_bound
|
||||
|
||||
def get_bounds(doc, root):
|
||||
return get_left_bound(doc, root), get_right_bound(doc, root)
|
||||
return get_left_bound(root), get_right_bound(doc, root)
|
||||
|
||||
doc = doclike.doc # Ensure works on both Doc and Span.
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user