mirror of
https://github.com/moses-smt/mosesdecoder.git
synced 2025-01-08 04:27:53 +03:00
30 lines
651 B
C++
30 lines
651 B
C++
/*
|
|
* UnknownWordPenalty.h
|
|
*
|
|
* Created on: 28 Oct 2015
|
|
* Author: hieu
|
|
*/
|
|
|
|
#ifndef UNKNOWNWORDPENALTY_H_
|
|
#define UNKNOWNWORDPENALTY_H_
|
|
|
|
#include "PhraseTable.h"
|
|
|
|
class UnknownWordPenalty : public PhraseTable
|
|
{
|
|
public:
|
|
UnknownWordPenalty(size_t startInd, const std::string &line);
|
|
virtual ~UnknownWordPenalty();
|
|
|
|
virtual TargetPhrases::shared_const_ptr Lookup(const Manager &mgr, InputPath &inputPath) const;
|
|
|
|
virtual void
|
|
EvaluateInIsolation(const System &system,
|
|
const PhraseBase &source, const TargetPhrase &targetPhrase,
|
|
Scores &scores,
|
|
Scores *estimatedFutureScores) const;
|
|
|
|
};
|
|
|
|
#endif /* UNKNOWNWORDPENALTY_H_ */
|