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:
authorredpony <redpony@1f5c12ca-751b-0410-a591-d2e778427230>2006-07-20 18:28:40 +0400
committerredpony <redpony@1f5c12ca-751b-0410-a591-d2e778427230>2006-07-20 18:28:40 +0400
commit6020abb071efe4410f5c0be553f9be2500193b19 (patch)
tree47b76b9ec5fa062a3435caebde420189c994f093 /irstlm/src/lmtable.h
parente713be1848591e4c3873319403e89fd622c37be5 (diff)
remove mfstream and make lmtable take an istream instead of a filename
- mfstream is linux-only - istream is flexible (can be used with more exotic data sources) git-svn-id: https://mosesdecoder.svn.sourceforge.net/svnroot/mosesdecoder/trunk@213 1f5c12ca-751b-0410-a591-d2e778427230
Diffstat (limited to 'irstlm/src/lmtable.h')
-rw-r--r--irstlm/src/lmtable.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/irstlm/src/lmtable.h b/irstlm/src/lmtable.h
index 893c8214d..59526925b 100644
--- a/irstlm/src/lmtable.h
+++ b/irstlm/src/lmtable.h
@@ -86,7 +86,7 @@ class lmtable{
dictionary *dict; // dictionary
- lmtable(const char* filename, int maxl,int res,double dec);
+ lmtable(std::istream& in, int maxl,int res,double dec);
~lmtable(){
for (int i=1;i<=maxlev;i++){
@@ -102,10 +102,10 @@ class lmtable{
void savetxt(const char *filename);
void savebin(const char *filename);
- void loadtxt(const char *filename, int maxl,int res, double dec);
- void loadbin(const char *filename);
+ void loadtxt(std::istream& in, const char* header, int maxl,int res, double dec);
+ void loadbin(std::istream& in, const char* header);
- void loadQtxt(const char *filename, int maxl);
+ void loadQtxt(std::istream& in, const char* header, int maxl);
double prob(ngram ng);