summaryrefslogtreecommitdiff
path: root/extractor/alignment.h
diff options
context:
space:
mode:
authorPaul Baltescu <pauldb89@gmail.com>2013-01-28 11:56:31 +0000
committerPaul Baltescu <pauldb89@gmail.com>2013-01-28 11:56:31 +0000
commit5530575ae0ad939e17f08d6bd49978acea388ab7 (patch)
tree4620a276c1c827d824e285148f4f4a5bf781ebfe /extractor/alignment.h
parentce6937f136a38af93d9a5cd9628acc712da95543 (diff)
Initial working commit.
Diffstat (limited to 'extractor/alignment.h')
-rw-r--r--extractor/alignment.h24
1 files changed, 24 insertions, 0 deletions
diff --git a/extractor/alignment.h b/extractor/alignment.h
new file mode 100644
index 00000000..e357e468
--- /dev/null
+++ b/extractor/alignment.h
@@ -0,0 +1,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);
+
+ vector<pair<int, int> > GetLinks(int sentence_index) const;
+
+ void WriteBinary(const fs::path& filepath);
+
+ private:
+ vector<vector<pair<int, int> > > alignments;
+};
+
+#endif