mirror of
https://github.com/explosion/spaCy.git
synced 2025-07-17 19:52:18 +03:00
Update spacy/ml/models/coref_util.py
Co-authored-by: kadarakos <kadar.akos@gmail.com>
This commit is contained in:
parent
178feae00a
commit
63e27b5e44
|
@ -143,7 +143,7 @@ def create_head_span_idxs(ops, doclen: int):
|
|||
|
||||
|
||||
def get_clusters_from_doc(doc) -> List[List[Tuple[int, int]]]:
|
||||
"""Given a Doc, convert the cluster spans to simple int tuple lists. The
|
||||
"""Convert the span clusters in a Doc to simple integer tuple lists. The
|
||||
ints are char spans, to be tokenization independent.
|
||||
"""
|
||||
out = []
|
||||
|
|
Loading…
Reference in New Issue
Block a user