From ee33de8652595602386ed49ba79ea00fa64e062f Mon Sep 17 00:00:00 2001 From: Matthew Honnibal Date: Mon, 21 May 2018 17:42:40 +0200 Subject: [PATCH] Fix unpickling of NER parser --- spacy/syntax/ner.pyx | 9 --------- 1 file changed, 9 deletions(-) diff --git a/spacy/syntax/ner.pyx b/spacy/syntax/ner.pyx index a476f4546..55cba692f 100644 --- a/spacy/syntax/ner.pyx +++ b/spacy/syntax/ner.pyx @@ -54,15 +54,6 @@ cdef class BiluoPushDown(TransitionSystem): def __init__(self, *args, **kwargs): TransitionSystem.__init__(self, *args, **kwargs) - def __reduce__(self): - labels_by_action = OrderedDict() - cdef Transition t - for trans in self.c[:self.n_moves]: - label_str = self.strings[trans.label] - labels_by_action.setdefault(trans.move, []).append(label_str) - return (BiluoPushDown, (self.strings, labels_by_action), - None, None) - @classmethod def get_actions(cls, **kwargs): actions = {