From 490b38e6bbfb9d73402a14fba1d77ecac4c55daf Mon Sep 17 00:00:00 2001 From: Matthew Honnibal Date: Wed, 31 May 2017 08:25:21 -0500 Subject: [PATCH] Fix reference to thinc copy_array util --- spacy/compat.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spacy/compat.py b/spacy/compat.py index b3019f45b..ff73caddd 100644 --- a/spacy/compat.py +++ b/spacy/compat.py @@ -6,7 +6,7 @@ import ftfy import sys import ujson -import thinc.neural.util +from thinc.neural.util import copy_array try: import cPickle as pickle @@ -34,7 +34,7 @@ copy_reg = copy_reg CudaStream = CudaStream cupy = cupy fix_text = ftfy.fix_text -copy_array = thinc.neural.util.copy_array +copy_array = copy_array is_python2 = six.PY2 is_python3 = six.PY3