summaryrefslogtreecommitdiff
path: root/extractor/alignment.h
blob: 290d601588ed88312739f8189874d9346289b361 (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
#ifndef _ALIGNMENT_H_
#define _ALIGNMENT_H_

#include <string>
#include <vector>

#include <boost/filesystem.hpp>

namespace fs = boost::filesystem;
using namespace std;

class Alignment {
 public:
  Alignment(const string& filename);

  const vector<pair<int, int> >& GetLinks(int sentence_index) const;

  void WriteBinary(const fs::path& filepath);

 private:
  vector<vector<pair<int, int> > > alignments;
};

#endif