diff options
author | Ulrich Germann <Ulrich.Germann@gmail.com> | 2015-03-26 19:37:04 +0300 |
---|---|---|
committer | Ulrich Germann <Ulrich.Germann@gmail.com> | 2015-03-26 19:37:04 +0300 |
commit | b3ff4ff13ac35293dcdb272f99b52388b560cb65 (patch) | |
tree | 1333c33a8a1ea4b8d4168ed17d8e20516fd2e737 /moses/TypeDef.h | |
parent | d364211d9088667ddb98136e0c9a29b913c31717 (diff) |
Managers have now access to the entire translation task.
Diffstat (limited to 'moses/TypeDef.h')
-rw-r--r-- | moses/TypeDef.h | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/moses/TypeDef.h b/moses/TypeDef.h index a47a6e2fe..66536909f 100644 --- a/moses/TypeDef.h +++ b/moses/TypeDef.h @@ -25,6 +25,9 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA #include <string> #include <stdint.h> +#include <boost/shared_ptr.hpp> +#include <boost/weak_ptr.hpp> + //! all the typedefs and enums goes here @@ -136,9 +139,9 @@ enum DictionaryFind { // model is phrase-based or syntax-based. If you add a syntax-based search // algorithm here then you should also update StaticData::IsSyntax(). enum SearchAlgorithm { - Normal = 0 + Normal = 0 ,CubePruning = 1 - //,CubeGrowing = 2 + //,CubeGrowing = 2 ,CYKPlus = 3 ,NormalBatch = 4 ,ChartIncremental = 5 @@ -146,6 +149,7 @@ enum SearchAlgorithm { ,SyntaxT2S = 7 ,SyntaxT2S_SCFG = 8 ,SyntaxF2S = 9 + ,DefaultSearchAlgorithm = 777 // means: use StaticData.m_searchAlgorithm }; enum SourceLabelOverlap { @@ -179,5 +183,8 @@ typedef std::vector<FactorType> FactorList; typedef std::pair<std::vector<std::string const*>,WordAlignments > StringWordAlignmentCand; +class TranslationTask; +typedef boost::shared_ptr<TranslationTask> ttasksptr; +typedef boost::weak_ptr<TranslationTask> ttaskwptr; } |