From 89ae218b7586437714a4e367b6d85bef310e7f18 Mon Sep 17 00:00:00 2001 From: Matthew Honnibal Date: Tue, 23 Jun 2015 03:04:34 +0200 Subject: [PATCH] * Add import to tokens.pyx from weird Cython compiler issue with casting from memory views --- spacy/tokens.pyx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/spacy/tokens.pyx b/spacy/tokens.pyx index 3b132c4c9..afda93b79 100644 --- a/spacy/tokens.pyx +++ b/spacy/tokens.pyx @@ -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()