* Fix parseC function

This commit is contained in:
Matthew Honnibal 2016-02-01 08:48:48 +01:00
parent bcf8f7ba40
commit 5188f6d9d8
1 changed files with 0 additions and 1 deletions

View File

@ -158,7 +158,6 @@ cdef class Parser:
raise ValueError("Illegal action: %s" % move_name) raise ValueError("Illegal action: %s" % move_name)
action.do(state, action.label) action.do(state, action.label)
memset(eg.scores, 0, sizeof(eg.scores[0]) * eg.nr_class) memset(eg.scores, 0, sizeof(eg.scores[0]) * eg.nr_class)
memset(eg.costs, 0, sizeof(eg.costs[0]) * eg.nr_class)
for i in range(eg.nr_class): for i in range(eg.nr_class):
eg.is_valid[i] = 1 eg.is_valid[i] = 1
self.moves.finalize_state(state) self.moves.finalize_state(state)