* Whitespace

This commit is contained in:
Matthew Honnibal 2015-08-08 23:31:54 +02:00
parent b27bd18d6e
commit 76a1f0481a

View File

@ -322,8 +322,9 @@ cdef class ArcEager(TransitionSystem):
cdef Transition lookup_transition(self, object name) except *: cdef Transition lookup_transition(self, object name) except *:
if '-' in name: if '-' in name:
move_str, label_str = name.split('-', 1) move_str, label_str = name.split('-', 1)
label = self.label_ids[label_str] label = self.strings[label_str]
else: else:
move_str = name
label = 0 label = 0
move = MOVE_NAMES.index(move_str) move = MOVE_NAMES.index(move_str)
for i in range(self.n_moves): for i in range(self.n_moves):