summaryrefslogtreecommitdiff
path: root/extractor/precomputation.h
diff options
context:
space:
mode:
authorPaul Baltescu <pauldb89@gmail.com>2013-05-23 20:42:26 +0100
committerPaul Baltescu <pauldb89@gmail.com>2013-05-23 20:42:26 +0100
commit4ab38fecf0f49c5132a5d5ea748d03e0acfa36c2 (patch)
tree8e250d99f4a381eae865a15b6eb43b0f77b68479 /extractor/precomputation.h
parent35d2c095ba6a912272f2fcc8322ece4213ada82b (diff)
parent1d96c9c9c521edfca1d10e4d8c5064f79fda3ec5 (diff)
Merge branch 'master' of github.com:pauldb89/cdec
Diffstat (limited to 'extractor/precomputation.h')
-rw-r--r--extractor/precomputation.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/extractor/precomputation.h b/extractor/precomputation.h
index e3c4d26a..3e792ac7 100644
--- a/extractor/precomputation.h
+++ b/extractor/precomputation.h
@@ -15,7 +15,7 @@ using namespace std;
namespace extractor {
-typedef boost::hash<vector<int> > VectorHash;
+typedef boost::hash<vector<int>> VectorHash;
typedef unordered_map<vector<int>, vector<int>, VectorHash> Index;
class SuffixArray;
@@ -54,7 +54,7 @@ class Precomputation {
private:
// Finds the most frequent contiguous collocations.
- vector<vector<int> > FindMostFrequentPatterns(
+ vector<vector<int>> FindMostFrequentPatterns(
shared_ptr<SuffixArray> suffix_array, const vector<int>& data,
int num_frequent_patterns, int max_frequent_phrase_len,
int min_frequency);
@@ -63,7 +63,7 @@ class Precomputation {
// it adds new entries to the index for each discontiguous collocation
// matching the criteria specified in the class description.
void AddCollocations(
- const vector<std::tuple<int, int, int> >& matchings, const vector<int>& data,
+ const vector<std::tuple<int, int, int>>& matchings, const vector<int>& data,
int max_rule_span, int min_gap_size, int max_rule_symbols);
// Adds an occurrence of a binary collocation.