summaryrefslogtreecommitdiff
path: root/gi/pf/transliterations.h
blob: a548aacf772d7d7525050cb13e4c422dad5e116d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#ifndef _TRANSLITERATIONS_H_
#define _TRANSLITERATIONS_H_

#include <vector>
#include "wordid.h"
#include "prob.h"

struct TransliterationsImpl;
struct Transliterations {
  explicit Transliterations();
  ~Transliterations();
  void Initialize(WordID src, const std::vector<WordID>& src_lets, WordID trg, const std::vector<WordID>& trg_lets);
  void Forbid(WordID src, WordID trg);
  void GraphSummary() const;
  prob_t EstimateProbability(WordID src, WordID trg) const;
  TransliterationsImpl* pimpl_;
};

#endif