summaryrefslogtreecommitdiff
path: root/extractor/features/max_lex_target_given_source.h
blob: c3c87327cbf5f3a3811a2e6359edea22ad3b8bb1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#ifndef _MAX_LEX_TARGET_GIVEN_SOURCE_H_
#define _MAX_LEX_TARGET_GIVEN_SOURCE_H_

#include <memory>

#include "feature.h"

using namespace std;

namespace extractor {

class TranslationTable;

namespace features {

/**
 * Feature computing max(p(e | f)) across all pairs of words in the phrase pair.
 */
class MaxLexTargetGivenSource : public Feature {
 public:
  MaxLexTargetGivenSource(shared_ptr<TranslationTable> table);

  double Score(const FeatureContext& context) const;

  string GetName() const;

 private:
  shared_ptr<TranslationTable> table;
};

} // namespace features
} // namespace extractor

#endif