mirror of
https://github.com/explosion/spaCy.git
synced 2025-03-12 07:15:48 +03:00
Update alignment
This commit is contained in:
parent
b5ef397639
commit
f4caaa8ad9
|
@ -2,7 +2,7 @@ import numpy
|
||||||
from ..errors import Errors, AlignmentError
|
from ..errors import Errors, AlignmentError
|
||||||
|
|
||||||
|
|
||||||
class Alignment:
|
cdef class Alignment:
|
||||||
def __init__(self, spacy_words, gold_words):
|
def __init__(self, spacy_words, gold_words):
|
||||||
# Do many-to-one alignment for misaligned tokens.
|
# Do many-to-one alignment for misaligned tokens.
|
||||||
# If we over-segment, we'll have one gold word that covers a sequence
|
# If we over-segment, we'll have one gold word that covers a sequence
|
||||||
|
|
Loading…
Reference in New Issue
Block a user