mirror of
https://github.com/explosion/spaCy.git
synced 2025-07-10 08:12:24 +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
|
return right_bound
|
||||||
|
|
||||||
def get_bounds(doc, root):
|
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.
|
doc = doclike.doc # Ensure works on both Doc and Span.
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user