From 933a7cf8d127009a7115c2bc833a9e2ca4ccd880 Mon Sep 17 00:00:00 2001 From: Ines Montani Date: Mon, 10 Aug 2020 16:43:37 +0200 Subject: [PATCH] Fix Lexeme.from_ptr --- spacy/lexeme.pxd | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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: