diff options
author | Paul Baltescu <pauldb89@gmail.com> | 2013-03-10 01:01:01 +0000 |
---|---|---|
committer | Paul Baltescu <pauldb89@gmail.com> | 2013-03-10 01:01:01 +0000 |
commit | e6181c89ab8f29d8bd0fc6a3a8a359cb50c2304c (patch) | |
tree | c05eaae595c711605e6ccb596b8b634756a95c5b /extractor/alignment.h | |
parent | 65a67c6921ee6da0477531224effe38559739455 (diff) |
Added comments. Hooray!
Diffstat (limited to 'extractor/alignment.h')
-rw-r--r-- | extractor/alignment.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/extractor/alignment.h b/extractor/alignment.h index ef89dc0c..e9292121 100644 --- a/extractor/alignment.h +++ b/extractor/alignment.h @@ -11,12 +11,18 @@ using namespace std; namespace extractor { +/** + * Data structure storing the word alignments for a parallel corpus. + */ class Alignment { public: + // Reads alignment from text file. Alignment(const string& filename); + // Returns the alignment for a given sentence. virtual vector<pair<int, int> > GetLinks(int sentence_index) const; + // Writes alignment to file in binary format. void WriteBinary(const fs::path& filepath); virtual ~Alignment(); |