* Import slice_unicode from strings.pyx

This commit is contained in:
Matthew Honnibal 2014-12-20 07:56:26 +11:00
parent be1bdcbd85
commit d11c1edf8c
2 changed files with 1 additions and 6 deletions

View File

@ -20,12 +20,6 @@ cdef struct _Cached:
int length
cdef inline void slice_unicode(UniStr* s, Py_UNICODE* chars, int start, int end) nogil:
s.chars = &chars[start]
s.n = end - start
s.key = hash64(s.chars, s.n * sizeof(Py_UNICODE), 0)
cdef class Vocab:
cpdef public get_lex_props
cdef Pool mem

View File

@ -4,6 +4,7 @@ from os import path
from .lexeme cimport EMPTY_LEXEME
from .lexeme cimport init as lexeme_init
from .strings cimport slice_unicode
cdef class Vocab: