From b39810d69201db251d0b54b17504b6e08cdbd33f Mon Sep 17 00:00:00 2001
From: Matthew Honnibal <honnibal+gh@gmail.com>
Date: Fri, 28 Sep 2018 15:23:14 +0200
Subject: [PATCH] Fix copy_reg compatibility on _serialize module

---
 spacy/tokens/_serialize.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/spacy/tokens/_serialize.py b/spacy/tokens/_serialize.py
index 25e60f6d8..ed54e4395 100644
--- a/spacy/tokens/_serialize.py
+++ b/spacy/tokens/_serialize.py
@@ -3,9 +3,9 @@ from __future__ import unicode_literals
 import numpy
 import msgpack
 import gzip
-import copyreg
 from thinc.neural.ops import NumpyOps
 
+from ..compat import copy_reg
 from ..tokens import Doc
 from ..attrs import SPACY, ORTH