mirror of
https://github.com/explosion/spaCy.git
synced 2024-12-25 01:16:28 +03:00
Fix Lexeme.from_ptr
This commit is contained in:
parent
64f2f84098
commit
933a7cf8d1
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue
Block a user