summaryrefslogtreecommitdiff
path: root/klm/alone/read.hh
blob: 10769a86d5adf0405b218610e41f3fc23c818331 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#ifndef ALONE_READ__
#define ALONE_READ__

#include "util/exception.hh"

#include <iosfwd>

namespace util { class FilePiece; }

namespace search { template <class Model> class Context; }

namespace alone {

class Graph;
class Vocab;

class FormatException : public util::Exception {
  public:
    FormatException() {}
    ~FormatException() throw() {}
};

void JustVocab(util::FilePiece &from, std::ostream &to);

template <class Model> bool ReadCDec(search::Context<Model> &context, util::FilePiece &from, Graph &to, Vocab &vocab);

} // namespace alone

#endif // ALONE_READ__