Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/moses-smt/mosesdecoder.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornicolabertoldi <nicolabertoldi@1f5c12ca-751b-0410-a591-d2e778427230>2008-05-14 15:28:54 +0400
committernicolabertoldi <nicolabertoldi@1f5c12ca-751b-0410-a591-d2e778427230>2008-05-14 15:28:54 +0400
commit36b25323c954a72a7b9b83bc6310c5f43ffa794d (patch)
tree7d23caae89585de18c4563bd221565062c6ca7c6 /mert/FeatureArray.h
parent40c93618fc4d69bd1beed446c0e6e21f2b576816 (diff)
small changes
git-svn-id: https://mosesdecoder.svn.sourceforge.net/svnroot/mosesdecoder/trunk@1641 1f5c12ca-751b-0410-a591-d2e778427230
Diffstat (limited to 'mert/FeatureArray.h')
-rw-r--r--mert/FeatureArray.h10
1 files changed, 7 insertions, 3 deletions
diff --git a/mert/FeatureArray.h b/mert/FeatureArray.h
index c5a56f1b3..1063960c7 100644
--- a/mert/FeatureArray.h
+++ b/mert/FeatureArray.h
@@ -53,12 +53,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);
};