summaryrefslogtreecommitdiff
path: root/extractor/run_extractor.cc
diff options
context:
space:
mode:
authorPaul Baltescu <pauldb89@gmail.com>2013-03-07 14:38:23 +0000
committerPaul Baltescu <pauldb89@gmail.com>2013-03-07 14:39:05 +0000
commitd7271db305bd1aeaf9c3d9ac1043546fec22a402 (patch)
treea2f1021577dd1846e5fa583d4859ee6ecb702299 /extractor/run_extractor.cc
parent6b5039cd1c167be93ecdbb2fa1721e91fe8f689a (diff)
Added unit test for loose phrases.
Diffstat (limited to 'extractor/run_extractor.cc')
-rw-r--r--extractor/run_extractor.cc17
1 files changed, 7 insertions, 10 deletions
diff --git a/extractor/run_extractor.cc b/extractor/run_extractor.cc
index 0f91236d..ae3a875e 100644
--- a/extractor/run_extractor.cc
+++ b/extractor/run_extractor.cc
@@ -60,7 +60,6 @@ int main(int argc, char** argv) {
"Minimum number of occurences for a pharse to be considered frequent")
("max_samples", po::value<int>()->default_value(300),
"Maximum number of samples")
- // TODO(pauldb): Check if this works when set to false.
("tight_phrases", po::value<bool>()->default_value(true),
"False if phrases may be loose (better, but slower)");
@@ -144,17 +143,15 @@ int main(int argc, char** argv) {
<< GetDuration(preprocess_start_time, preprocess_stop_time)
<< " seconds" << endl;
- cerr << "creating grammar extractor" << endl;
-
Clock::time_point extraction_start_time = Clock::now();
vector<shared_ptr<Feature> > features = {
-// make_shared<TargetGivenSourceCoherent>(),
-// make_shared<SampleSourceCount>(),
-// make_shared<CountSourceTarget>(),
-// make_shared<MaxLexSourceGivenTarget>(table),
-// make_shared<MaxLexTargetGivenSource>(table),
-// make_shared<IsSourceSingleton>(),
-// make_shared<IsSourceTargetSingleton>()
+ make_shared<TargetGivenSourceCoherent>(),
+ make_shared<SampleSourceCount>(),
+ make_shared<CountSourceTarget>(),
+ make_shared<MaxLexSourceGivenTarget>(table),
+ make_shared<MaxLexTargetGivenSource>(table),
+ make_shared<IsSourceSingleton>(),
+ make_shared<IsSourceTargetSingleton>()
};
shared_ptr<Scorer> scorer = make_shared<Scorer>(features);