Skip to content

Commit

Permalink
Given -m, use requested model name for output file
Browse files Browse the repository at this point in the history
  • Loading branch information
danielhers committed Jul 30, 2015
1 parent 1c557b0 commit 82ad4b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion parser/lstm-parse.cc
Original file line number Diff line number Diff line change
Expand Up @@ -558,7 +558,7 @@ int main(int argc, char** argv) {
<< '_' << REL_DIM
<< "-pid" << getpid() << ".params";
int best_correct_heads = 0;
const string fname = os.str();
const string fname = conf.count("model") ? conf["model"].as<string>() : os.str();
cerr << "Writing parameters to file: " << fname << endl;
bool softlinkCreated = false;
corpus.load_correct_actions(conf["training_data"].as<string>());
Expand Down

0 comments on commit 82ad4b4

Please sign in to comment.