From 69507bc7295711a7bc9544541070964a025fe1e5 Mon Sep 17 00:00:00 2001 From: Matthew Honnibal Date: Tue, 23 Jun 2015 00:03:30 +0200 Subject: [PATCH] * Re-enable Break transition in arc_eager.pyx --- spacy/syntax/arc_eager.pyx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spacy/syntax/arc_eager.pyx b/spacy/syntax/arc_eager.pyx index f7dc77724..4d89ad386 100644 --- a/spacy/syntax/arc_eager.pyx +++ b/spacy/syntax/arc_eager.pyx @@ -19,7 +19,7 @@ from .stateclass cimport StateClass DEF NON_MONOTONIC = True -DEF USE_BREAK = False +DEF USE_BREAK = True DEF USE_ROOT_ARC_SEGMENT = True cdef weight_t MIN_SCORE = -90000 @@ -252,7 +252,7 @@ cdef class Break: @staticmethod cdef inline int move_cost(StateClass s, const GoldParseC* gold) nogil: cdef int cost = 0 - cdef int S_i, B_i + cdef int i, j, S_i, B_i for i in range(s.stack_depth()): S_i = s.S(i) for j in range(s.buffer_length()):