This commit is contained in:
Matthew Honnibal 2018-04-01 13:47:16 +02:00
parent 83ca2113a2
commit ad70b91e1e

View File

@ -26,8 +26,12 @@ DEF USE_SPLIT = False
cdef weight_t MIN_SCORE = -90000
# Break transition from here
# Break transition inspired by this paper:
# http://www.aclweb.org/anthology/P13-1074
# However, there's a significant difference in the constraints.
# The most relevant factor is whether we predict Break early, or late:
# do we wait until the root is on the stack, or do we predict when the last
# word of the previous sentence is on the stack?
cdef enum:
SHIFT
REDUCE