mirror of
https://github.com/moses-smt/mosesdecoder.git
synced 2024-09-11 11:25:40 +03:00
24 lines
395 B
C++
24 lines
395 B
C++
#pragma once
|
|
|
|
#include "moses/LM/oxlm/OxLMMapper.h"
|
|
|
|
namespace Moses
|
|
{
|
|
|
|
class OxLMParallelMapper : public OxLMMapper
|
|
{
|
|
public:
|
|
OxLMParallelMapper(
|
|
const boost::shared_ptr<oxlm::Vocabulary>& vocab,
|
|
bool pos_back_off,
|
|
const FactorType& pos_factor_type);
|
|
|
|
int convertSource(const Word& word) const;
|
|
|
|
private:
|
|
Coll moses2SourceOxlm;
|
|
int kSOURCE_UNKNOWN;
|
|
};
|
|
|
|
} // namespace Moses
|