From 404019ad2f55d24fdfa8a83980c06d2051e31ac7 Mon Sep 17 00:00:00 2001 From: Matthew Honnibal Date: Sun, 18 Dec 2016 22:33:53 +0100 Subject: [PATCH] Fix issue #672: ent_iob_ was a string, not unicode, due to missing unicode_literals statement. --- spacy/tokens/token.pyx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/spacy/tokens/token.pyx b/spacy/tokens/token.pyx index 26cdae786..b2b7dc83f 100644 --- a/spacy/tokens/token.pyx +++ b/spacy/tokens/token.pyx @@ -1,3 +1,7 @@ +# encoding: utf8 +# cython: infer_types=True +from __future__ import unicode_literals + from libc.string cimport memcpy from cpython.mem cimport PyMem_Malloc, PyMem_Free # Compiler crashes on memory view coercion without this. Should report bug.