Skip to content

Commit 6e367f6

Browse files
authored
Merge pull request #1479 from chantera/master
improved ArcStandardTransitionSystem.PerformRightArc()
2 parents 3b15402 + d229273 commit 6e367f6

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)