Skip to content

Commit d229273

Browse files
committed
improved ArcStandardTransitionSystem.PerformRightArc()
1 parent 71bf3d4 commit d229273

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

syntaxnet/syntaxnet/arc_standard_transitions.cc

+1-3
Original file line numberDiff line numberDiff line change
@@ -269,9 +269,7 @@ class ArcStandardTransitionSystem : public ParserTransitionSystem {
269269
void PerformRightArc(ParserState *state, int label) const {
270270
DCHECK(IsAllowedRightArc(*state));
271271
int s0 = state->Pop();
272-
int s1 = state->Pop();
273-
state->AddArc(s0, s1, label);
274-
state->Push(s1);
272+
state->AddArc(s0, state->Top(), label);
275273
}
276274

277275
// We are in a deterministic state when we either reached the end of the input

0 commit comments

Comments
 (0)