* Fix get_by_orth for py3

This commit is contained in:
Matthew Honnibal 2015-07-26 19:26:41 +02:00
parent ceeda5a739
commit 0f093fdb30
1 changed files with 1 additions and 1 deletions

View File

@ -107,7 +107,7 @@ cdef class Vocab:
'''Get a pointer to a LexemeC from the lexicon, creating a new Lexeme
if necessary, using memory acquired from the given pool. If the pool
is the lexicon's own memory, the lexeme is saved in the lexicon.'''
if string == u'':
if orth == 0:
return &EMPTY_LEXEME
cdef LexemeC* lex
lex = <LexemeC*>self._by_orth.get(orth)