summaryrefslogtreecommitdiff
path: root/extractor/matching_comparator.h
diff options
context:
space:
mode:
authorPaul Baltescu <pauldb89@gmail.com>2013-01-28 11:56:31 +0000
committerPaul Baltescu <pauldb89@gmail.com>2013-01-28 11:56:31 +0000
commit5530575ae0ad939e17f08d6bd49978acea388ab7 (patch)
tree4620a276c1c827d824e285148f4f4a5bf781ebfe /extractor/matching_comparator.h
parentce6937f136a38af93d9a5cd9628acc712da95543 (diff)
Initial working commit.
Diffstat (limited to 'extractor/matching_comparator.h')
-rw-r--r--extractor/matching_comparator.h23
1 files changed, 23 insertions, 0 deletions
diff --git a/extractor/matching_comparator.h b/extractor/matching_comparator.h
new file mode 100644
index 00000000..6e1bb487
--- /dev/null
+++ b/extractor/matching_comparator.h
@@ -0,0 +1,23 @@
+#ifndef _MATCHING_COMPARATOR_H_
+#define _MATCHING_COMPARATOR_H_
+
+#include <memory>
+
+using namespace std;
+
+class Vocabulary;
+class Matching;
+
+class MatchingComparator {
+ public:
+ MatchingComparator(int min_gap_size, int max_rule_span);
+
+ int Compare(const Matching& left, const Matching& right,
+ int last_chunk_len, bool offset) const;
+
+ private:
+ int min_gap_size;
+ int max_rule_span;
+};
+
+#endif