* Add import to tokens.pyx from weird Cython compiler issue with casting from memory views

This commit is contained in:
Matthew Honnibal 2015-06-23 03:04:34 +02:00
parent f01b3d043e
commit 89ae218b75

View File

@ -17,7 +17,8 @@ from .spans import Span
from .structs cimport UniStr
from unidecode import unidecode
# Compiler crashes on memory view coercion without this. Should report bug.
from cython.view cimport array as cvarray
cimport numpy as np
np.import_array()