Skip to content

Commit cf520dc

Browse files
committed
fixed
1 parent 30b67bd commit cf520dc

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

impl/dependency-parser.cc

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -318,7 +318,7 @@ if(params.debug) std::cerr<<"possible action " << current_valid_actions.size()<<
318318

319319
if(params.debug) {
320320
for(unsigned i = 0; i < current_valid_actions.size(); i ++){
321-
std::cerr<<current_valid_actions[i]<<":"<<current_valid_actions[i]<<" ";
321+
std::cerr<<current_valid_actions[i]<<":"<<adict.convert(current_valid_actions[i])<<" ";
322322
}
323323
std::cerr<<"\n";
324324
}
@@ -598,7 +598,6 @@ int main(int argc, char** argv) {
598598
VOCAB_SIZE = termdict.size()+10;
599599
ACTION_SIZE = adict.size()+10;
600600

601-
possible_actions.resize(adict.size());
602601
for(unsigned i = 0; i < adict.size(); ++i) possible_actions.push_back(i);
603602

604603
cerr<<"action:\n";
@@ -686,7 +685,6 @@ int main(int argc, char** argv) {
686685
++si;
687686
trs += actions.size();
688687
words += sentence.size();
689-
exit(1);
690688
}
691689
sgd->status();
692690

0 commit comments

Comments
 (0)