diff --git a/spacy/lexeme.pxd b/spacy/lexeme.pxd index c99b6912a..8dea0d6a2 100644 --- a/spacy/lexeme.pxd +++ b/spacy/lexeme.pxd @@ -18,11 +18,12 @@ cdef class Lexeme: cdef readonly attr_t orth @staticmethod - cdef inline Lexeme from_ptr(LexemeC* lex, Vocab vocab, int vector_length): + cdef inline Lexeme from_ptr(LexemeC* lex, Vocab vocab): cdef Lexeme self = Lexeme.__new__(Lexeme, vocab, lex.orth) self.c = lex self.vocab = vocab self.orth = lex.orth + return self @staticmethod cdef inline void set_struct_attr(LexemeC* lex, attr_id_t name, attr_t value) nogil: