00001 #pragma once 00002 00003 #include "moses/LM/oxlm/OxLMMapper.h" 00004 00005 namespace Moses 00006 { 00007 00008 class OxLMParallelMapper : public OxLMMapper 00009 { 00010 public: 00011 OxLMParallelMapper( 00012 const boost::shared_ptr<oxlm::Vocabulary>& vocab, 00013 bool pos_back_off, 00014 const FactorType& pos_factor_type); 00015 00016 int convertSource(const Word& word) const; 00017 00018 private: 00019 Coll moses2SourceOxlm; 00020 int kSOURCE_UNKNOWN; 00021 }; 00022 00023 } // namespace Moses