From 1d96c9c9c521edfca1d10e4d8c5064f79fda3ec5 Mon Sep 17 00:00:00 2001 From: Paul Baltescu Date: Mon, 13 May 2013 22:32:44 +0100 Subject: Replace > > with >>. --- extractor/alignment.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'extractor/alignment.cc') diff --git a/extractor/alignment.cc b/extractor/alignment.cc index 1aea34b3..b187c03a 100644 --- a/extractor/alignment.cc +++ b/extractor/alignment.cc @@ -21,7 +21,7 @@ Alignment::Alignment(const string& filename) { while (getline(infile, line)) { vector items; boost::split(items, line, boost::is_any_of(" -")); - vector > alignment; + vector> alignment; alignment.reserve(items.size() / 2); for (size_t i = 0; i < items.size(); i += 2) { alignment.push_back(make_pair(stoi(items[i]), stoi(items[i + 1]))); @@ -35,7 +35,7 @@ Alignment::Alignment() {} Alignment::~Alignment() {} -vector > Alignment::GetLinks(int sentence_index) const { +vector> Alignment::GetLinks(int sentence_index) const { return alignments[sentence_index]; } @@ -43,7 +43,7 @@ void Alignment::WriteBinary(const fs::path& filepath) { FILE* file = fopen(filepath.string().c_str(), "w"); int size = alignments.size(); fwrite(&size, sizeof(int), 1, file); - for (vector > alignment: alignments) { + for (vector> alignment: alignments) { size = alignment.size(); fwrite(&size, sizeof(int), 1, file); fwrite(alignment.data(), sizeof(pair), size, file); -- cgit v1.2.3