diff options
author | nicolabertoldi <nicolabertoldi@1f5c12ca-751b-0410-a591-d2e778427230> | 2008-06-03 12:56:37 +0400 |
---|---|---|
committer | nicolabertoldi <nicolabertoldi@1f5c12ca-751b-0410-a591-d2e778427230> | 2008-06-03 12:56:37 +0400 |
commit | 1402f3036b583f901b9e973e0d0f0067623d8265 (patch) | |
tree | 00bfdda3fd0edeb385838107732544c999bdefa5 /mert/FeatureStats.cpp | |
parent | 1792e14945cc8655bc81d32150f78746841e3871 (diff) |
added ScorerFactory.h
git-svn-id: https://mosesdecoder.svn.sourceforge.net/svnroot/mosesdecoder/trunk@1811 1f5c12ca-751b-0410-a591-d2e778427230
Diffstat (limited to 'mert/FeatureStats.cpp')
-rw-r--r-- | mert/FeatureStats.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/mert/FeatureStats.cpp b/mert/FeatureStats.cpp index 95f3aa2e7..57ba179fc 100644 --- a/mert/FeatureStats.cpp +++ b/mert/FeatureStats.cpp @@ -72,9 +72,15 @@ void FeatureStats::savetxt(const std::string &file) void FeatureStats::savetxt(std::ofstream& outFile) { - outFile << *this; + TRACE_ERR("saving the stats" << std::endl); + outFile << this; } +void FeatureStats::savebin(std::ofstream& outFile) +{ + outFile << "S|"; + outFile << "|E"; +} FeatureStats& FeatureStats::operator=(const FeatureStats &stats) { |