/disk4/html/www/moses/doxygen/mosesdecoder/moses/TypeDef.h File Reference

#include <list>
#include <limits>
#include <vector>
#include <string>
#include <stdint.h>
#include <boost/shared_ptr.hpp>
#include <boost/weak_ptr.hpp>

Go to the source code of this file.


Namespaces

namespace  Moses
 $Id$
namespace  Moses::LexReorderType
namespace  Moses::DistortionOrientationType

Defines

#define PROJECT_NAME   "moses"
#define BOS_   "<s>"
#define EOS_   "</s>"
#define UNKNOWN_FACTOR   "UNK"
#define EPSILON   "*EPS*"
#define NOT_FOUND   std::numeric_limits<size_t>::max()
#define MAX_NGRAM_SIZE   20
#define SPTR   boost::shared_ptr
#define WPTR   boost::weak_ptr

Typedefs

typedef size_t Moses::FactorType
typedef std::vector< float > Moses::Scores
typedef std::vector< std::string > Moses::WordAlignments
typedef std::vector< FactorType > Moses::FactorList
typedef std::pair< std::vector
< std::string const * >
, WordAlignments > 
Moses::StringWordAlignmentCand
typedef boost::shared_ptr
< TranslationTask > 
Moses::ttasksptr
typedef boost::weak_ptr
< TranslationTask > 
Moses::ttaskwptr

Enumerations

enum  Moses::FactorDirection { Moses::Input, Moses::Output }
enum  Moses::DecodeType { Moses::Translate, Moses::Generate }
enum  Moses::LexReorderType::LexReorderType {
  Moses::LexReorderType::Backward, Moses::LexReorderType::Forward, Moses::LexReorderType::Bidirectional, Moses::LexReorderType::Fe,
  Moses::LexReorderType::F
}
enum  Moses::DistortionOrientationType::DistortionOrientationOptions { Moses::DistortionOrientationType::Monotone, Moses::DistortionOrientationType::Msd }
enum  Moses::InputTypeEnum {
  Moses::SentenceInput = 0, Moses::ConfusionNetworkInput = 1, Moses::WordLatticeInput = 2, Moses::TreeInputType = 3,
  Moses::TabbedSentenceInput = 5, Moses::ForestInputType = 6
}
enum  Moses::XmlInputType {
  Moses::XmlPassThrough = 0, Moses::XmlIgnore = 1, Moses::XmlExclusive = 2, Moses::XmlInclusive = 3,
  Moses::XmlConstraint = 4
}
enum  Moses::DictionaryFind { Moses::Best = 0, Moses::All = 1 }
enum  Moses::SearchAlgorithm {
  Moses::Normal = 0, Moses::CubePruning = 1, Moses::CYKPlus = 3, Moses::ChartIncremental = 5,
  Moses::SyntaxS2T = 6, Moses::SyntaxT2S = 7, Moses::SyntaxT2S_SCFG = 8, Moses::SyntaxF2S = 9,
  Moses::DefaultSearchAlgorithm = 777
}
enum  Moses::SourceLabelOverlap { Moses::SourceLabelOverlapAdd = 0, Moses::SourceLabelOverlapReplace = 1, Moses::SourceLabelOverlapDiscard = 2 }
enum  Moses::WordAlignmentSort { Moses::NoSort = 0, Moses::TargetOrder = 1 }
enum  Moses::FormatType { Moses::MosesFormat, Moses::HieroFormat }
enum  Moses::S2TParsingAlgorithm { Moses::RecursiveCYKPlus, Moses::Scope3 }

Variables

const size_t Moses::DEFAULT_CUBE_PRUNING_POP_LIMIT = 1000
const size_t Moses::DEFAULT_CUBE_PRUNING_DIVERSITY = 0
const size_t Moses::DEFAULT_MAX_HYPOSTACK_SIZE = 200
const size_t Moses::DEFAULT_MAX_TRANS_OPT_CACHE_SIZE = 10000
const size_t Moses::DEFAULT_MAX_TRANS_OPT_SIZE = 5000
const size_t Moses::DEFAULT_MAX_PART_TRANS_OPT_SIZE = 10000
const size_t Moses::DEFAULT_MAX_PHRASE_LENGTH = 20
const size_t Moses::DEFAULT_MAX_CHART_SPAN = 20
const size_t Moses::ARRAY_SIZE_INCR = 10
const float Moses::LOWEST_SCORE = -100.0f
const float Moses::DEFAULT_BEAM_WIDTH = 0.00001f
const float Moses::DEFAULT_EARLY_DISCARDING_THRESHOLD = 0.0f
const float Moses::DEFAULT_TRANSLATION_OPTION_THRESHOLD = 0.0f
const size_t Moses::DEFAULT_VERBOSE_LEVEL = 1
const float Moses::FLOAT_EPSILON = 0.0001
const int Moses::NUM_LANGUAGES = 2


Define Documentation

#define BOS_   "<s>"

#define EOS_   "</s>"

#define EPSILON   "*EPS*"

#define MAX_NGRAM_SIZE   20

Definition at line 51 of file TypeDef.h.

#define NOT_FOUND   std::numeric_limits<size_t>::max()

#define PROJECT_NAME   "moses"

Definition at line 38 of file TypeDef.h.

#define SPTR   boost::shared_ptr

Definition at line 192 of file TypeDef.h.

#define UNKNOWN_FACTOR   "UNK"

#define WPTR   boost::weak_ptr

Definition at line 193 of file TypeDef.h.


Generated on Thu Jul 6 00:31:35 2017 for Moses by  doxygen 1.5.9