diff options
author | nicolabertoldi <nicolabertoldi@1f5c12ca-751b-0410-a591-d2e778427230> | 2008-05-15 12:35:56 +0400 |
---|---|---|
committer | nicolabertoldi <nicolabertoldi@1f5c12ca-751b-0410-a591-d2e778427230> | 2008-05-15 12:35:56 +0400 |
commit | 2ef6f3e2d86ec160ecec505f69c46a2d08c3ee40 (patch) | |
tree | 901c973a91521a934e925fe05a75e5eace80dc0a /mert/ScoreArray.h | |
parent | 1f84c9eab7189380d5bdb1756905e88b44e72259 (diff) |
main command for managing feature and error statistics is ready; small example fortesting is available in directory example
git-svn-id: https://mosesdecoder.svn.sourceforge.net/svnroot/mosesdecoder/trunk@1692 1f5c12ca-751b-0410-a591-d2e778427230
Diffstat (limited to 'mert/ScoreArray.h')
-rw-r--r-- | mert/ScoreArray.h | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/mert/ScoreArray.h b/mert/ScoreArray.h index 42f16628c..fcaa6e2dc 100644 --- a/mert/ScoreArray.h +++ b/mert/ScoreArray.h @@ -9,8 +9,10 @@ #ifndef SCORE_ARRAY_H #define SCORE_ARRAY_H -#define SCORES_BEGIN "SCORES_BEGIN_0" -#define SCORES_END "SCORES_END_0" +#define SCORES_TXT_BEGIN "SCORES_TXT_BEGIN_0" +#define SCORES_TXT_END "SCORES_TXT_END_0" +#define SCORES_BIN_BEGIN "SCORES_BIN_BEGIN_0" +#define SCORES_BIN_END "SCORES_BIN_END_0" using namespace std; @@ -53,12 +55,16 @@ public: inline size_t memsize(){ return bufLen_; } - void savetxt(const std::string &file); void savetxt(ofstream& outFile); - inline void savetxt(){ savetxt("/dev/stdout"); } + void savebin(ofstream& outFile); + void save(ofstream& outFile, bool bin=false); + void save(const std::string &file, bool bin=false); + inline void save(bool bin=false){ save("/dev/stdout", bin); } void loadtxt(ifstream& inFile); - void loadtxt(const std::string &file); + void loadbin(ifstream& inFile); + void load(ifstream& inFile, bool bin=false); + void load(const std::string &file, bool bin=false); }; |