From 82ad4b4d302a7846990f672b5ac437351e62889b Mon Sep 17 00:00:00 2001 From: Daniel Hershcovich Date: Tue, 28 Jul 2015 16:27:49 +0300 Subject: [PATCH] Given -m, use requested model name for output file --- parser/lstm-parse.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/parser/lstm-parse.cc b/parser/lstm-parse.cc index b96732e..97ec2e8 100644 --- a/parser/lstm-parse.cc +++ b/parser/lstm-parse.cc @@ -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() : os.str(); cerr << "Writing parameters to file: " << fname << endl; bool softlinkCreated = false; corpus.load_correct_actions(conf["training_data"].as());