diff options
author | Eva Hasler <evahasler@gmail.com> | 2012-04-09 23:47:51 +0400 |
---|---|---|
committer | Eva Hasler <evahasler@gmail.com> | 2012-04-09 23:47:51 +0400 |
commit | fdca25051659ccc01e27910d2f4a08570c7301a5 (patch) | |
tree | 01d0691c54a8a8002a67bc0bf709ed264fede332 /mira | |
parent | 96642447aa8cda377dc93435ec78a654af200c60 (diff) |
fix setting sourcePhrase, enable stateless ff for chart, add EvaluateChart to stateless ff, revert glmu to stateless ff, Evaluate gets hypothesis instead of target phrase, swd/twi/wt features implemented for chart (w/o context features)
Diffstat (limited to 'mira')
-rw-r--r-- | mira/Main.cpp | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/mira/Main.cpp b/mira/Main.cpp index 219da1d3e..e3678ff44 100644 --- a/mira/Main.cpp +++ b/mira/Main.cpp @@ -1385,15 +1385,13 @@ int main(int argc, char** argv) { if (weightEpochDump == weightDumpFrequency && printFeatureCounts) { // print out all features with counts - stringstream s1, s2; - s1 << "sparse_feature_hope_counts" << "_" << epoch; - s2 << "sparse_feature_fear_counts" << "_" << epoch; - ofstream sparseFeatureCountsHope(s1.str().c_str()); - ofstream sparseFeatureCountsFear(s2.str().c_str()); + stringstream s1, s2; + s1 << "sparse_feature_hope_counts" << "_" << epoch; + s2 << "sparse_feature_fear_counts" << "_" << epoch; + ofstream sparseFeatureCountsHope(s1.str().c_str()); + ofstream sparseFeatureCountsFear(s2.str().c_str()); - cerr << "Printing out hope feature counts" << endl; mixedAverageWeights.PrintSparseHopeFeatureCounts(sparseFeatureCountsHope); - cerr << "Printing out fear feature counts" << endl; mixedAverageWeights.PrintSparseFearFeatureCounts(sparseFeatureCountsFear); sparseFeatureCountsHope.close(); sparseFeatureCountsFear.close(); |