Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ModelZoo
ResNet50_tensorflow
Commits
6e367f67
Commit
6e367f67
authored
Jun 29, 2017
by
Neal Wu
Committed by
GitHub
Jun 29, 2017
Browse files
Merge pull request #1479 from chantera/master
improved ArcStandardTransitionSystem.PerformRightArc()
parents
3b15402f
d229273e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
3 deletions
+1
-3
syntaxnet/syntaxnet/arc_standard_transitions.cc
syntaxnet/syntaxnet/arc_standard_transitions.cc
+1
-3
No files found.
syntaxnet/syntaxnet/arc_standard_transitions.cc
View file @
6e367f67
...
@@ -269,9 +269,7 @@ class ArcStandardTransitionSystem : public ParserTransitionSystem {
...
@@ -269,9 +269,7 @@ class ArcStandardTransitionSystem : public ParserTransitionSystem {
void
PerformRightArc
(
ParserState
*
state
,
int
label
)
const
{
void
PerformRightArc
(
ParserState
*
state
,
int
label
)
const
{
DCHECK
(
IsAllowedRightArc
(
*
state
));
DCHECK
(
IsAllowedRightArc
(
*
state
));
int
s0
=
state
->
Pop
();
int
s0
=
state
->
Pop
();
int
s1
=
state
->
Pop
();
state
->
AddArc
(
s0
,
state
->
Top
(),
label
);
state
->
AddArc
(
s0
,
s1
,
label
);
state
->
Push
(
s1
);
}
}
// We are in a deterministic state when we either reached the end of the input
// We are in a deterministic state when we either reached the end of the input
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment