From 9a21127bf7beeae04067161a5b4a150328d2bc4c Mon Sep 17 00:00:00 2001 From: Matthew Honnibal Date: Thu, 8 Jan 2015 00:10:15 +1100 Subject: [PATCH] * Fix parser, which was importing the wrong model --- spacy/syntax/parser.pxd | 2 +- spacy/syntax/parser.pyx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/spacy/syntax/parser.pxd b/spacy/syntax/parser.pxd index e4fc38969..7803530ff 100644 --- a/spacy/syntax/parser.pxd +++ b/spacy/syntax/parser.pxd @@ -1,4 +1,4 @@ -from .._ml cimport Model, HastyModel +from .._ml cimport Model from .arc_eager cimport TransitionSystem diff --git a/spacy/syntax/parser.pyx b/spacy/syntax/parser.pyx index 4139a9652..ab3fd89c5 100644 --- a/spacy/syntax/parser.pyx +++ b/spacy/syntax/parser.pyx @@ -63,7 +63,7 @@ cdef class GreedyParser: self.cfg = Config.read(model_dir, 'config') self.moves = TransitionSystem(self.cfg.left_labels, self.cfg.right_labels) hasty_templ, full_templ = get_templates(self.cfg.features) - self.model = HastyModel(self.moves.n_moves, hasty_templ, full_templ, + self.model = Model(self.moves.n_moves, hasty_templ, full_templ, model_dir) cpdef int parse(self, Tokens tokens) except -1: