Cambridge SMT System
constants-fsttools.hpp
Go to the documentation of this file.
1 #ifndef CONSTANTS_FSTTOOLS_HPP
2 #define CONSTANTS_FSTTOOLS_HPP
3 
4 namespace HifstConstants {
6 
7 // const string kNThreads="nthreads";
8 // const string kRange="range";
9 std::string const kRangeExtended = kRange + ",r";
10 std::string const kInput = "input";
11 std::string const kInputExtended = "input,i";
12 std::string const kOutput = "output";
13 std::string const kOutputExtended = "output,o";
14 
15 std::string const kHifstSemiring = "semiring";
16 std::string const kHifstSemiringStdArc = "stdarc";
17 std::string const kHifstSemiringLexStdArc = "lexstdarc";
18 std::string const kHifstSemiringTupleArc = "tuplearc";
19 std::string const kHifstSemiringExtended = "semiring,s";
20 
21 // Language model
22 std::string const kLmFeatureweights = "lm.featureweights";
23 std::string const kLmLoad = "lm.load";
24 std::string const kLmWordmap = "lm.wordmap";
25 std::string const kLmWordPenalty = "lm.wps";
26 std::string const kLmLogTen = "lm.log10";
27 
28 std::string const kLatticeLoad = "lattice.load";
29 std::string const kLatticeLoadDeleteLmCost = "lattice.load.deletelmcost";
30 std::string const kLatticeStore = "lattice.store";
31 std::string const kStatsWrite = "stats.write";
32 
33 std::string const kUseBilingualModel = "usebilm";
34 std::string const kUseBilingualModelSourceSize = "usebilm.sourcesize";
35 std::string const kUseBilingualModelSourceSentenceFile = "usebilm.sourcesentencefile";
36 std::string const kTune = "tune";
37 std::string const kTuneWordPenaltyRange = "tune.wp";
38 std::string const kTuneWrite = "tune.write";
39 // Disambig/recaser
40 
41 std::string const kRecaserLmLoad = "recaser.lm.load";
42 std::string const kRecaserLmFeatureweight = "recaser.lm.scale";
43 std::string const kRecaserUnimapLoad = "recaser.unimap.load";
44 std::string const kRecaserUnimapWeight = "recaser.unimap.scale";
45 std::string const kRecaserPrune = "recaser.prune";
46 std::string const kRecaserInput = "recaser.input";
47 std::string const kRecaserInputExtended = kRecaserInput + ",i";
48 std::string const kRecaserOutput = "recaser.output";
49 std::string const kRecaserOutputExtended = kRecaserOutput + ",o";
50 
51 // not used TODO: check
52 std::string const kRecaserLmWps = "recaser.lm.wps";
53 std::string const kRecaserLmWordmap = "recaser.lm.wordmap";
54 
55 // printstrings
56 std::string const kUnique = "unique";
57 std::string const kUniqueExtended = kUnique + ",u";
58 std::string const kNbest = "nbest";
59 std::string const kNbestExtended = kNbest + ",n";
60 std::string const kSentBleu = "sbleu";
61 std::string const kSparseFormat = "sparseformat";
62 std::string const kSparseDotProduct = "dotproduct";
63 std::string const kTupleArcWeights = "tuplearc.weights";
64 std::string const kWeight = "weight";
65 std::string const kWeightExtended = kWeight + ",w";
66 std::string const kWeightPrecision = "weight.precision";
67 std::string const kLabelMap = "label-map";
68 std::string const kLabelMapExtended = kLabelMap + ",m";
69 std::string const kPrintOutputLabels = "print-output-labels";
70 std::string const kPrintOutputLabelsExtended = kPrintOutputLabels + ",pol";
71 std::string const kPrintInputOutputLabels = "print-input-output-labels";
72 std::string const kIntersectionWithHypothesesLoad = "intersection-with-hypotheses.load";
73 
74 std::string const kSuppress = "suppress-hyps";
75 std::string const kLibLinRankFormat = "liblinear-ranking";
76 
77 // samplehyps
78 std::string const kWordRefs = "word_refs";
79 std::string const kIntRefs = "int_refs";
80 std::string const kExternalTokenizer = "external_tokenizer";
81 std::string const kWordMap = "word_map";
82 std::string const kAlpha = "alpha";
83 std::string const kNSamples= "num_samples";
84 std::string const kNegativeExamples= "negative_examples";
85 std::string const kDontNegate= "dont_negate";
86 std::string const kBinaryTarget= "binary_target";
87 std::string const kRandomSeed= "random_seed";
88 
89 // lexmap
90 std::string const kAction = "action";
91 std::string const kActionLex2std = "lex2std";
92 std::string const kActionStd2lex = "std2lex";
93 std::string const kActionProjectweight2 = "projectweight2";
94 // tunewp
95 std::string const kEpsilonLabels = "epsilons";
96 std::string const kWordPenalty = "word_penalty";
97 std::string const kWordPenaltyExtended = kWordPenalty + ",wp";
98 //instead of arc_type, use semiring
99 
100 std::string const kYes = "yes";
101 std::string const kNo = "no";
102 std::string const kUserWpRange = "%%wp%%";
103 
104 std::string const kDeterminizeOutput = "determinize-output";
105 std::string const kMinimize = "minimize";
106 std::string const kExitOnFirstPassFailure = "exit-on-first-pass-failure";
107 std::string const kUseOpenFst = "use-openfst";
108 
109 }
110 
111 namespace HC = HifstConstants;
112 
113 #endif
114 
std::string const kHifstSemiring
std::string const kUniqueExtended
std::string const kNbestExtended
std::string const kWordPenaltyExtended
std::string const kBinaryTarget
std::string const kPrintOutputLabels
std::string const kUseBilingualModelSourceSentenceFile
std::string const kEpsilonLabels
std::string const kAlpha
std::string const kUseBilingualModel
std::string const kRecaserPrune
std::string const kRecaserUnimapLoad
std::string const kRecaserLmLoad
std::string const kLmLogTen
std::string const kSentBleu
std::string const kLatticeStore
const std::string kRange
Definition: range.hpp:25
std::string const kOutputExtended
std::string const kInput
std::string const kExternalTokenizer
std::string const kIntRefs
std::string const kDontNegate
std::string const kWeight
std::string const kNSamples
std::string const kNo
std::string const kNbest
std::string const kRecaserOutputExtended
std::string const kOutput
std::string const kExitOnFirstPassFailure
std::string const kRangeExtended
List of constants to be used both across program options and class runners.
std::string const kWordRefs
std::string const kRandomSeed
std::string const kRecaserOutput
std::string const kPrintInputOutputLabels
std::string const kLabelMap
std::string const kActionStd2lex
std::string const kHifstSemiringLexStdArc
std::string const kLatticeLoadDeleteLmCost
std::string const kDeterminizeOutput
std::string const kLmFeatureweights
std::string const kHifstSemiringStdArc
std::string const kTuneWrite
std::string const kAction
std::string const kHifstSemiringTupleArc
std::string const kWordMap
std::string const kPrintOutputLabelsExtended
std::string const kWeightExtended
std::string const kInputExtended
std::string const kWordPenalty
std::string const kUseOpenFst
std::string const kRecaserUnimapWeight
std::string const kActionLex2std
std::string const kTune
std::string const kLibLinRankFormat
std::string const kRecaserLmFeatureweight
std::string const kLatticeLoad
std::string const kNegativeExamples
std::string const kRecaserInputExtended
std::string const kWeightPrecision
std::string const kActionProjectweight2
std::string const kTupleArcWeights
std::string const kUserWpRange
std::string const kLabelMapExtended
std::string const kLmWordmap
std::string const kRecaserLmWps
std::string const kLmLoad
std::string const kSuppress
std::string const kRecaserLmWordmap
std::string const kTuneWordPenaltyRange
std::string const kSparseDotProduct
std::string const kSparseFormat
std::string const kHifstSemiringExtended
std::string const kLmWordPenalty
std::string const kStatsWrite
std::string const kUseBilingualModelSourceSize
std::string const kRecaserInput
std::string const kIntersectionWithHypothesesLoad
std::string const kYes
std::string const kMinimize
std::string const kUnique