diff --git a/spacy/lexeme.pxd b/spacy/lexeme.pxd index 7bf6ad0e2..cfaceccb8 100644 --- a/spacy/lexeme.pxd +++ b/spacy/lexeme.pxd @@ -44,7 +44,7 @@ cdef class Lexeme: cdef inline Lexeme from_ptr(const LexemeC* ptr, StringStore strings): cdef Lexeme py = Lexeme.__new__(Lexeme, 300) for i in range(300): - py.vec[i] = ptr.vec[i] + py.repvec[i] = ptr.repvec[i] py.flags = ptr.flags py.id = ptr.id py.length = ptr.length diff --git a/spacy/lexeme.pyx b/spacy/lexeme.pyx index 1ce4eb3b0..19e6ef79f 100644 --- a/spacy/lexeme.pyx +++ b/spacy/lexeme.pyx @@ -28,7 +28,7 @@ cdef int set_lex_struct_props(LexemeC* lex, dict props, StringStore string_store lex.sentiment = props['sentiment'] lex.flags = props['flags'] - lex.vec = empty_vec + lex.repvec = empty_vec cdef class Lexeme: