diff options
author | redpony <redpony@1f5c12ca-751b-0410-a591-d2e778427230> | 2006-07-20 18:28:40 +0400 |
---|---|---|
committer | redpony <redpony@1f5c12ca-751b-0410-a591-d2e778427230> | 2006-07-20 18:28:40 +0400 |
commit | 6020abb071efe4410f5c0be553f9be2500193b19 (patch) | |
tree | 47b76b9ec5fa062a3435caebde420189c994f093 /irstlm/src/dictionary.h | |
parent | e713be1848591e4c3873319403e89fd622c37be5 (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/dictionary.h')
-rw-r--r-- | irstlm/src/dictionary.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/irstlm/src/dictionary.h b/irstlm/src/dictionary.h index cc38e57c8..910ac2cea 100644 --- a/irstlm/src/dictionary.h +++ b/irstlm/src/dictionary.h @@ -74,7 +74,6 @@ typedef struct{ class strstack; class htable; -class mfstream; class dictionary{ strstack *st; //!< stack of strings @@ -175,8 +174,8 @@ class dictionary{ void generate(char *filename); void load(char *filename); void save(char *filename,int freqflag=0); - void load(mfstream& fd); - void save(mfstream& fd); + void load(std::istream& fd); + void save(std::ostream& fd); int size(){return n;}; int getcode(const char *w); |