blob: ef89dc0cf9c0b5e413b7d5da6ed2c0198d33fdf2 (
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
30
31
32
33
|
#ifndef _ALIGNMENT_H_
#define _ALIGNMENT_H_
#include <string>
#include <vector>
#include <boost/filesystem.hpp>
namespace fs = boost::filesystem;
using namespace std;
namespace extractor {
class Alignment {
public:
Alignment(const string& filename);
virtual vector<pair<int, int> > GetLinks(int sentence_index) const;
void WriteBinary(const fs::path& filepath);
virtual ~Alignment();
protected:
Alignment();
private:
vector<vector<pair<int, int> > > alignments;
};
} // namespace extractor
#endif
|