diff options
author | bojar <bojar@1f5c12ca-751b-0410-a591-d2e778427230> | 2006-10-02 18:32:18 +0400 |
---|---|---|
committer | bojar <bojar@1f5c12ca-751b-0410-a591-d2e778427230> | 2006-10-02 18:32:18 +0400 |
commit | 5bcb34be1787ebd24dbcd3320df441fb0ac177dc (patch) | |
tree | e9c282971ec3e46ba6e27c7e542c2e32a57e2cde /irstlm/src/lmtable.h | |
parent | a12bb015a78f06a67c884fb2113ebc4fe66cf3b5 (diff) |
changed fstream to istream in lmtable, so irstlm now supports reading gzippped models (via InputFileStream)
git-svn-id: https://mosesdecoder.svn.sourceforge.net/svnroot/mosesdecoder/trunk@838 1f5c12ca-751b-0410-a591-d2e778427230
Diffstat (limited to 'irstlm/src/lmtable.h')
-rw-r--r-- | irstlm/src/lmtable.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/irstlm/src/lmtable.h b/irstlm/src/lmtable.h index c759527e1..76dff8d7e 100644 --- a/irstlm/src/lmtable.h +++ b/irstlm/src/lmtable.h @@ -234,17 +234,17 @@ public: void savebin(const char *filename); void dumplm(std::fstream& out,ngram ng, int ilev, int elev, int ipos,int epos); - void load(std::fstream& inp); - void loadtxt(std::fstream& inp,const char* header); - void loadbin(std::fstream& inp,const char* header); + void load(std::istream& inp); + void loadtxt(std::istream& inp,const char* header); + void loadbin(std::istream& inp,const char* header); - void loadbinheader(std::fstream& inp, const char* header); - void loadbincodebook(std::fstream& inp,int l); + void loadbinheader(std::istream& inp, const char* header); + void loadbincodebook(std::istream& inp,int l); void filter(const char* lmfile); void filter2(const char* lmfile,int buffMb=512); - void loadcenters(std::fstream& inp,int Order); + void loadcenters(std::istream& inp,int Order); double prob(ngram ng); double lprob(ngram ng); |