Skip to content

Commit 82ad4b4

Browse files
committed
Given -m, use requested model name for output file
1 parent 1c557b0 commit 82ad4b4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

parser/lstm-parse.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -558,7 +558,7 @@ int main(int argc, char** argv) {
558558
<< '_' << REL_DIM
559559
<< "-pid" << getpid() << ".params";
560560
int best_correct_heads = 0;
561-
const string fname = os.str();
561+
const string fname = conf.count("model") ? conf["model"].as<string>() : os.str();
562562
cerr << "Writing parameters to file: " << fname << endl;
563563
bool softlinkCreated = false;
564564
corpus.load_correct_actions(conf["training_data"].as<string>());

0 commit comments

Comments
 (0)