mosesdecoder/contrib/other-builds/moses2/UnknownWordPenalty.h

30 lines
651 B
C
Raw Normal View History

2015-10-28 19:45:52 +03:00
/*
* UnknownWordPenalty.h
*
* Created on: 28 Oct 2015
* Author: hieu
*/
#ifndef UNKNOWNWORDPENALTY_H_
#define UNKNOWNWORDPENALTY_H_
2015-10-28 20:12:02 +03:00
#include "PhraseTable.h"
class UnknownWordPenalty : public PhraseTable
{
2015-10-28 19:45:52 +03:00
public:
2015-10-28 20:12:02 +03:00
UnknownWordPenalty(size_t startInd, const std::string &line);
2015-10-28 19:45:52 +03:00
virtual ~UnknownWordPenalty();
2015-10-28 20:12:02 +03:00
virtual TargetPhrases::shared_const_ptr Lookup(const Manager &mgr, InputPath &inputPath) const;
2015-10-28 20:12:02 +03:00
2015-10-29 02:26:17 +03:00
virtual void
2015-10-29 03:47:06 +03:00
EvaluateInIsolation(const System &system,
2015-10-29 03:56:50 +03:00
const PhraseBase &source, const TargetPhrase &targetPhrase,
2015-10-29 03:47:06 +03:00
Scores &scores,
Scores *estimatedFutureScores) const;
2015-10-29 02:26:17 +03:00
2015-10-28 19:45:52 +03:00
};
#endif /* UNKNOWNWORDPENALTY_H_ */