summaryrefslogtreecommitdiff
path: root/extractor/extract.cc
diff options
context:
space:
mode:
authorPaul Baltescu <pauldb89@gmail.com>2013-11-26 16:03:16 +0000
committerPaul Baltescu <pauldb89@gmail.com>2013-11-26 16:03:16 +0000
commit304103565d3b79cc9c98c1ee0356a8824fc982c2 (patch)
treeca5e54771cf72305eb7e0c8b6cec556f6f6cf55d /extractor/extract.cc
parentbed3e4b867e4132917fa0640956e8ce713f0e451 (diff)
Write config file after compiling data structures.
Diffstat (limited to 'extractor/extract.cc')
-rw-r--r--extractor/extract.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/extractor/extract.cc b/extractor/extract.cc
index 2d5831fa..387cbe9b 100644
--- a/extractor/extract.cc
+++ b/extractor/extract.cc
@@ -72,7 +72,7 @@ int main(int argc, char** argv) {
po::options_description cmdline_options("Command line options");
cmdline_options.add_options()
("help", "Show available options")
- ("config", po::value<string>()->required(), "Path to config file");
+ ("config,c", po::value<string>()->required(), "Path to config file");
cmdline_options.add(general_options);
po::options_description config_options("Config file options");
@@ -236,7 +236,7 @@ int main(int argc, char** argv) {
Grammar grammar = extractor.GetGrammar(
sentences[i], blacklisted_sentence_ids);
ofstream output(GetGrammarFilePath(grammar_path, i).c_str());
- // output << grammar;
+ output << grammar;
}
for (size_t i = 0; i < sentences.size(); ++i) {