Cambridge SMT System
constants-hifst.hpp
Go to the documentation of this file.
1 #ifndef CONSTANTS_HIFST_HPP
2 #define CONSTANTS_HIFST_HPP
3 
4 namespace HifstConstants {
6 
7 //createssgrammar and hifst
8 
9 //const string kServerEnable="server.enable";
10 const std::string kServerPort = "server.port";
11 
12 const std::string kFeatureweights = "featureweights";
13 
14 const std::string kGrammarLoad = "grammar.load";
15 const std::string kGrammarFeatureweights = "grammar.featureweights";
16 const std::string kGrammarStorepatterns = "grammar.storepatterns";
17 const std::string kGrammarStorentorder = "grammar.storentorder";
18 
19 const std::string kSourceLoad = "source.load";
20 const std::string kTargetStore = "target.store";
21 
22 const std::string kPreproTokenizeEnable = "prepro.tokenize.enable";
23 const std::string kPreproTokenizeLanguage = "prepro.tokenize.language";
24 const std::string kPreproAddsentencemarkers = "prepro.addsentencemarkers";
25 const std::string kPreproWordmapLoad = "prepro.wordmap.load";
26 
27 const std::string kPatternstoinstancesMaxspan = "patternstoinstances.maxspan";
28 const std::string kPatternstoinstancesGapmaxspan =
29  "patternstoinstances.gapmaxspan";
30 const std::string kPatternstoinstancesStore = "patternstoinstances.store";
31 
32 const std::string kSsgrammarStore = "ssgrammar.store";
33 const std::string kSsgrammarAddoovsEnable = "ssgrammar.addoovs.enable";
35  "ssgrammar.addoovs.sourcedeletions";
36 
37 // only hifst
38 const std::string kReferencefilterLoad = "referencefilter.load";
39 const std::string kReferencefilterLoadSemiring = "referencefilter.load.semiring";
40 const std::string kReferencefilterWrite = "referencefilter.write";
41 const std::string kReferencefilterSubstring = "referencefilter.substring";
43  "referencefilter.prunereferenceweight";
45  "referencefilter.prunereferenceshortestpath";
46 
47 //currently not used as an option
49  "referencefilter.nosubstring.store";
50 
51 const std::string kCykparserHrmaxheight = "cykparser.hrmaxheight";
52 const std::string kCykparserHmax = "cykparser.hmax";
53 const std::string kCykparserHmin = "cykparser.hmin";
54 const std::string kCykparserNtexceptionsmaxspan =
55  "cykparser.ntexceptionsmaxspan";
56 
57 const std::string kHifstLatticeStore = "hifst.lattice.store";
58 const std::string kHifstLatticeOptimize = "hifst.lattice.optimize";
59 const std::string kHifstAlilatsmode = "hifst.alilatsmode";
60 const std::string kHifstAlilatsmodeLinks = "hifst.alilatsmode.type";
61 const std::string kHifstUsepdt = "hifst.usepdt";
62 const std::string kHifstRtnopt = "hifst.rtnopt";
63 const std::string kHifstOptimizecells = "hifst.optimizecells";
65  "hifst.replacefstbyarc.nonterminals";
66 const std::string kHifstReplacefstbyarcNumstates =
67  "hifst.replacefstbyarc.numstates";
69  "hifst.replacefstbyarc.exceptions";
70 const std::string kHifstLocalpruneEnable = "hifst.localprune.enable";
71 const std::string kHifstLocalpruneLmLoad = "hifst.localprune.lm.load";
73  "hifst.localprune.lm.featureweights";
74 const std::string kHifstLocalpruneLmWordpenalty = "hifst.localprune.lm.wps";
75 const std::string kHifstLocalpruneConditions = "hifst.localprune.conditions";
76 const std::string kHifstLocalpruneNumstates = "hifst.localprune.numstates";
77 const std::string kHifstPrune = "hifst.prune";
78 const std::string kHifstWritertn = "hifst.writertn";
79 
80 const std::string kHifstDisableRuleFeatures = "hifst.disablerulefeatures";
81 
82 const std::string kHifstStripSpecialEpsilonLabels = "hifst.lattice.optimize.stripspecialepsilonlabels";
83 
84 const std::string kPostproInput = "postpro.input";
85 
86 const std::string kPostproWordmapLoad = "postpro.wordmap.load";
87 const std::string kPostproDetokenizeEnable = "postpro.detokenize.enable";
88 const std::string kPostproDetokenizeLanguage = "postpro.detokenize.language";
90  "postpro.capitalizefirstword.enable";
91 
92 const std::string kStatsHifstWrite = "stats.hifst.write";
93 const std::string kStatsHifstCykgridEnable = "stats.hifst.cykgrid.enable";
94 const std::string kStatsHifstCykgridCellwidth = "stats.hifst.cykgrid.cellwidth";
95 // const string kStatsWrite="stats.write";
96 
97 
98 // alilats2splats
100  "ruleflowerlattice.filterbyalilats";
101 const std::string kRuleflowerlatticeLoad = "ruleflowerlattice.load";
102 const std::string kRuleflowerlatticeStore = "ruleflowerlattice.store";
104  "ruleflowerlattice.featureweights";
106  "sparseweightvectorlattice.loadalilats";
108  "sparseweightvectorlattice.store";
110  "sparseweightvectorlattice.storenbestfile";
112  "sparseweightvectorlattice.wordmap";
114  "sparseweightvectorlattice.storefeaturefile";
116  "sparseweightvectorlattice.firstsparsefeatureatindex";
117 
119  "sparseweightvectorlattice.storenolm";
121  "sparseweightvectorlattice.stripspecialepsilonlabels";
122 
124  "sparseweightvectorlattice.determinize";
125 
126 
127 
128 // rules2weights specific
129 const std::string kRulesToWeightsEnable = "rulestoweights.enable";
130 const std::string kRulesToWeightsNumberOfLanguageModels = "rulestoweights.numlms";
131 const std::string kRulesToWeightsLoadalilats = "rulestoweights.loadalilats";
132 const std::string kRulesToWeightsLatticeStore = "rulestoweights.store";
133 const std::string kRulesToWeightsLoadGrammar = "rulestoweights.loadgrammar";
134 const std::string kRulesToWeightsLatticeFilterbyAlilats = "rulestoweights.filterbyalilats";
135 
136 // lmbr-specific
137 
138 const std::string kLmbrLexstdarc =
139  "lexstdarc"; // TODO; should be unified with --semiring
140 const std::string kLmbrLoadEvidencespace = "load.evidencespace";
141 const std::string kLmbrLoadHypothesesspace = "load.hypothesesspace";
142 const std::string kLmbrWritedecoder = "writedecoder";
143 const std::string kLmbrWriteonebest = "writeonebest";
144 const std::string kLmbrMinorder = "minorder";
145 const std::string kLmbrMaxorder = "maxorder";
146 const std::string kLmbrAlpha = "alpha";
147 const std::string kLmbrWps = "wps";
148 const std::string kLmbrP = "p";
149 const std::string kLmbrR = "r";
150 const std::string kLmbrT = "T";
151 const std::string kLmbrPreprune = "preprune";
152 
153 // hifst-client
154 const std::string kHifstHost = "host";
155 const std::string kHifstPort = "port";
156 
157 }
158 
159 #endif
160 
const std::string kLmbrAlpha
const std::string kLmbrLoadHypothesesspace
const std::string kHifstLatticeStore
const std::string kServerPort
List of constants to be used both across program options and class runners.
const std::string kHifstLocalpruneLmFeatureweights
const std::string kRulesToWeightsNumberOfLanguageModels
const std::string kCykparserHrmaxheight
const std::string kHifstStripSpecialEpsilonLabels
const std::string kReferencefilterSubstring
const std::string kPostproDetokenizeLanguage
const std::string kRuleflowerlatticeLoad
const std::string kHifstWritertn
const std::string kPreproTokenizeEnable
const std::string kHifstPrune
const std::string kHifstHost
const std::string kCykparserNtexceptionsmaxspan
const std::string kStatsHifstCykgridCellwidth
const std::string kLmbrLexstdarc
const std::string kGrammarFeatureweights
const std::string kSparseweightvectorlatticeDeterminize
const std::string kTargetStore
const std::string kSparseweightvectorlatticeLoadalilats
const std::string kPreproWordmapLoad
const std::string kPatternstoinstancesStore
const std::string kRulesToWeightsEnable
const std::string kHifstUsepdt
const std::string kStatsHifstCykgridEnable
const std::string kHifstPort
const std::string kPostproWordmapLoad
const std::string kHifstDisableRuleFeatures
const std::string kHifstReplacefstbyarcNonterminals
const std::string kHifstAlilatsmode
const std::string kLmbrWritedecoder
const std::string kLmbrPreprune
const std::string kPostproInput
const std::string kHifstLocalpruneLmLoad
const std::string kReferencefilterLoadSemiring
const std::string kSparseweightvectorlatticeStripSpecialEpsilonLabels
const std::string kReferencefilterPrunereferenceweight
const std::string kSparseweightvectorlatticeStorenbestfile
const std::string kHifstLocalpruneNumstates
const std::string kHifstOptimizecells
const std::string kLmbrLoadEvidencespace
const std::string kLmbrMaxorder
const std::string kRulesToWeightsLatticeFilterbyAlilats
const std::string kHifstAlilatsmodeLinks
const std::string kRuleflowerlatticeFilterbyalilats
const std::string kHifstLocalpruneLmWordpenalty
const std::string kRulesToWeightsLoadalilats
const std::string kLmbrT
const std::string kRuleflowerlatticeFeatureweights
const std::string kCykparserHmin
const std::string kSparseweightvectorlatticeWordmap
const std::string kHifstLocalpruneConditions
const std::string kSparseweightvectorlatticeStorefeaturefile
const std::string kSsgrammarAddoovsSourcedeletions
const std::string kRuleflowerlatticeStore
const std::string kSsgrammarAddoovsEnable
const std::string kSparseweightvectorlatticeStore
const std::string kLmbrMinorder
const std::string kPreproAddsentencemarkers
const std::string kSparseweightvectorlatticeFirstsparsefeatureatindex
const std::string kSourceLoad
const std::string kPostproDetokenizeEnable
const std::string kPostproCapitalizefirstwordEnable
const std::string kRulesToWeightsLoadGrammar
const std::string kStatsHifstWrite
const std::string kHifstRtnopt
const std::string kSsgrammarStore
const std::string kHifstLatticeOptimize
const std::string kReferencefilterWrite
const std::string kReferencefilterPrunereferenceshortestpath
const std::string kGrammarStorepatterns
const std::string kLmbrR
const std::string kRulesToWeightsLatticeStore
const std::string kHifstReplacefstbyarcNumstates
const std::string kPatternstoinstancesGapmaxspan
const std::string kGrammarStorentorder
const std::string kPreproTokenizeLanguage
const std::string kReferencefilterNosubstringStore
const std::string kLmbrP
const std::string kFeatureweights
const std::string kReferencefilterLoad
const std::string kSparseweightvectorlatticeStorenolm
const std::string kHifstReplacefstbyarcExceptions
const std::string kCykparserHmax
const std::string kPatternstoinstancesMaxspan
const std::string kLmbrWriteonebest
const std::string kGrammarLoad
const std::string kHifstLocalpruneEnable
const std::string kLmbrWps