// $Id: $ /*********************************************************************** Moses - factored phrase-based language decoder Copyright (C) 2010 University of Edinburgh This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA ***********************************************************************/ #ifndef moses_TranslationSystem_h #define moses_TranslationSystem_h #include #include #include #include "FeatureFunction.h" #include "LMList.h" namespace Moses { class DecodeGraph; class LexicalReordering; class PhraseDictionaryFeature; class GenerationDictionary; class WordPenaltyProducer; class DistortionScoreProducer; class UnknownWordPenaltyProducer; class MetaFeatureProducer; class GlobalLexicalModel; /** * Enables the configuration of multiple translation systems. **/ class TranslationSystem { public: /** Creates a system with the given id */ TranslationSystem(const std::string& id, const WordPenaltyProducer* wpProducer, const UnknownWordPenaltyProducer* uwpProducer, const DistortionScoreProducer* distortionProducer); const std::string& GetId() const {return m_id;} //Lists of tables relevant to this system. //sentence (and thread) specific initialisationn and cleanup void InitializeBeforeSentenceProcessing(const InputType& source) const; void CleanUpAfterSentenceProcessing(const InputType& source) const; static const std::string DEFAULT; private: std::string m_id; }; } #endif