File tree Expand file tree Collapse file tree 1 file changed +1
-3
lines changed
Expand file tree Collapse file tree 1 file changed +1
-3
lines changed Original file line number Diff line number Diff line change @@ -318,7 +318,7 @@ if(params.debug) std::cerr<<"possible action " << current_valid_actions.size()<<
318318
319319if (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
You can’t perform that action at this time.
0 commit comments