From 0ff078876a1f3ce4653e5d0046d209d0e73e22a1 Mon Sep 17 00:00:00 2001 From: Matthew Honnibal Date: Wed, 4 Feb 2015 14:16:57 -0500 Subject: [PATCH] * Commit some work on ner.yx done on the plane --- spacy/syntax/ner.pyx | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/spacy/syntax/ner.pyx b/spacy/syntax/ner.pyx index b66bd11fd..dccecd212 100644 --- a/spacy/syntax/ner.pyx +++ b/spacy/syntax/ner.pyx @@ -190,7 +190,6 @@ cdef class TransitionSystem: cdef Transition best_gold(self, Transition* guess, const weight_t* scores, const State* s, Move* golds) except *: - cdef Move* g = &golds[s.i] cdef ActionType next_act = golds[s.i+1].action if s.i < s.length else OUT cdef bint is_sunk = entity_is_sunk(s, golds) @@ -203,8 +202,8 @@ cdef class TransitionSystem: scores[i] > score: best = i score = scores[i] - assert best >= 0 - return self._moves[best] + assert best >= 0 + return self._moves[best] class OracleError(Exception):