From f4caaa8ad9f36a5bb3c9a040859d781eb81c40b5 Mon Sep 17 00:00:00 2001 From: Matthew Honnibal Date: Tue, 9 Jun 2020 15:43:57 +0200 Subject: [PATCH] Update alignment --- spacy/gold/align.pyx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spacy/gold/align.pyx b/spacy/gold/align.pyx index 49e8aaa98..80ba0346a 100644 --- a/spacy/gold/align.pyx +++ b/spacy/gold/align.pyx @@ -2,7 +2,7 @@ import numpy from ..errors import Errors, AlignmentError -class Alignment: +cdef class Alignment: def __init__(self, spacy_words, gold_words): # Do many-to-one alignment for misaligned tokens. # If we over-segment, we'll have one gold word that covers a sequence