From 36bc55a33b5f075f6479c64f94d60ecbbd1f3270 Mon Sep 17 00:00:00 2001 From: Paul Baltescu Date: Tue, 25 Jun 2013 17:28:54 +0100 Subject: Undo last commit. --- extractor/fast_intersector.cc | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) (limited to 'extractor/fast_intersector.cc') diff --git a/extractor/fast_intersector.cc b/extractor/fast_intersector.cc index 5360c1da..a8591a72 100644 --- a/extractor/fast_intersector.cc +++ b/extractor/fast_intersector.cc @@ -20,13 +20,10 @@ FastIntersector::FastIntersector(shared_ptr suffix_array, vocabulary(vocabulary), max_rule_span(max_rule_span), min_gap_size(min_gap_size) { - auto precomputed_collocations = precomputation->GetCollocations(); - for (auto item: precomputed_collocations) { - vector phrase = ConvertPhrase(item.first); - vector location = item.second; - vector& phrase_collocations = collocations[phrase]; - phrase_collocations.insert(phrase_collocations.end(), location.begin(), - location.end()); + Index precomputed_collocations = precomputation->GetCollocations(); + for (pair, vector> entry: precomputed_collocations) { + vector phrase = ConvertPhrase(entry.first); + collocations[phrase] = entry.second; } } -- cgit v1.2.3