summaryrefslogtreecommitdiff
path: root/extractor/target_phrase_extractor.h
diff options
context:
space:
mode:
authorPatrick Simianer <p@simianer.de>2013-06-20 01:28:43 +0200
committerPatrick Simianer <p@simianer.de>2013-06-20 01:28:43 +0200
commitb84dbcec63a488c85ef32591a1a751571a4ec808 (patch)
treeb15737c3f9e0d18c36a8d84d52e6c0bb270190f9 /extractor/target_phrase_extractor.h
parent4ee4f74ae8cf88fd2335267c26cbfb73f3ef8f28 (diff)
parentf1ce46ec9b1b8efcc4a91a149454acf03c01db02 (diff)
Merge remote-tracking branch 'upstream/master'
Diffstat (limited to 'extractor/target_phrase_extractor.h')
-rw-r--r--extractor/target_phrase_extractor.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/extractor/target_phrase_extractor.h b/extractor/target_phrase_extractor.h
index 289bae2f..644493cd 100644
--- a/extractor/target_phrase_extractor.h
+++ b/extractor/target_phrase_extractor.h
@@ -9,7 +9,7 @@ using namespace std;
namespace extractor {
-typedef vector<pair<int, int> > PhraseAlignment;
+typedef vector<pair<int, int>> PhraseAlignment;
class Alignment;
class DataArray;
@@ -32,8 +32,8 @@ class TargetPhraseExtractor {
// Finds all the target phrases that can extracted from a span in the
// target sentence (matching the given set of target phrase gaps).
- virtual vector<pair<Phrase, PhraseAlignment> > ExtractPhrases(
- const vector<pair<int, int> >& target_gaps, const vector<int>& target_low,
+ virtual vector<pair<Phrase, PhraseAlignment>> ExtractPhrases(
+ const vector<pair<int, int>>& target_gaps, const vector<int>& target_low,
int target_phrase_low, int target_phrase_high,
const unordered_map<int, int>& source_indexes, int sentence_id) const;
@@ -44,8 +44,8 @@ class TargetPhraseExtractor {
// Computes the cartesian product over the sets of possible target phrase
// chunks.
void GeneratePhrases(
- vector<pair<Phrase, PhraseAlignment> >& target_phrases,
- const vector<pair<int, int> >& ranges, int index,
+ vector<pair<Phrase, PhraseAlignment>>& target_phrases,
+ const vector<pair<int, int>>& ranges, int index,
vector<int>& subpatterns, const vector<int>& target_gap_order,
int target_phrase_low, int target_phrase_high,
const unordered_map<int, int>& source_indexes, int sentence_id) const;