mirror of
https://github.com/moses-smt/mosesdecoder.git
synced 2024-12-27 05:55:02 +03:00
always compile with probing pt
This commit is contained in:
parent
e84afbfc1c
commit
b27310d367
9
Jamroot
9
Jamroot
@ -206,12 +206,9 @@ if [ option.get "with-icu" : : "yes" ]
|
|||||||
# requirements += <runtime-link>shared ;
|
# requirements += <runtime-link>shared ;
|
||||||
}
|
}
|
||||||
|
|
||||||
if [ option.get "with-probing-pt" : : "yes" ]
|
# for probing pt
|
||||||
{
|
external-lib boost_serialization ;
|
||||||
external-lib boost_serialization ;
|
requirements += <library>boost_serialization ;
|
||||||
requirements += <define>HAVE_PROBINGPT ;
|
|
||||||
requirements += <library>boost_serialization ;
|
|
||||||
}
|
|
||||||
|
|
||||||
if [ option.get "with-vw" ] {
|
if [ option.get "with-vw" ] {
|
||||||
requirements += <define>HAVE_VW ;
|
requirements += <define>HAVE_VW ;
|
||||||
|
@ -36,7 +36,6 @@
|
|||||||
<option id="gnu.cpp.compiler.option.preprocessor.def.53427549" name="Defined symbols (-D)" superClass="gnu.cpp.compiler.option.preprocessor.def" valueType="definedSymbols">
|
<option id="gnu.cpp.compiler.option.preprocessor.def.53427549" name="Defined symbols (-D)" superClass="gnu.cpp.compiler.option.preprocessor.def" valueType="definedSymbols">
|
||||||
<listOptionValue builtIn="false" value="PT_UG"/>
|
<listOptionValue builtIn="false" value="PT_UG"/>
|
||||||
<listOptionValue builtIn="false" value="MOSES_VERSION_ID=0"/>
|
<listOptionValue builtIn="false" value="MOSES_VERSION_ID=0"/>
|
||||||
<listOptionValue builtIn="false" value="HAVE_PROBINGPT"/>
|
|
||||||
<listOptionValue builtIn="false" value="HAVE_CMPH"/>
|
<listOptionValue builtIn="false" value="HAVE_CMPH"/>
|
||||||
<listOptionValue builtIn="false" value="MAX_NUM_FACTORS=4"/>
|
<listOptionValue builtIn="false" value="MAX_NUM_FACTORS=4"/>
|
||||||
<listOptionValue builtIn="false" value="KENLM_MAX_ORDER=7"/>
|
<listOptionValue builtIn="false" value="KENLM_MAX_ORDER=7"/>
|
||||||
@ -44,6 +43,7 @@
|
|||||||
<listOptionValue builtIn="false" value="_FILE_OFFSET_BITS=64"/>
|
<listOptionValue builtIn="false" value="_FILE_OFFSET_BITS=64"/>
|
||||||
<listOptionValue builtIn="false" value="_LARGE_FILES"/>
|
<listOptionValue builtIn="false" value="_LARGE_FILES"/>
|
||||||
</option>
|
</option>
|
||||||
|
<option id="gnu.cpp.compiler.option.dialect.std.1869920346" superClass="gnu.cpp.compiler.option.dialect.std" value="gnu.cpp.compiler.dialect.default" valueType="enumerated"/>
|
||||||
<inputType id="cdt.managedbuild.tool.gnu.cpp.compiler.input.1023855536" superClass="cdt.managedbuild.tool.gnu.cpp.compiler.input"/>
|
<inputType id="cdt.managedbuild.tool.gnu.cpp.compiler.input.1023855536" superClass="cdt.managedbuild.tool.gnu.cpp.compiler.input"/>
|
||||||
</tool>
|
</tool>
|
||||||
<tool id="cdt.managedbuild.tool.gnu.c.compiler.exe.debug.1313249282" name="GCC C Compiler" superClass="cdt.managedbuild.tool.gnu.c.compiler.exe.debug">
|
<tool id="cdt.managedbuild.tool.gnu.c.compiler.exe.debug.1313249282" name="GCC C Compiler" superClass="cdt.managedbuild.tool.gnu.c.compiler.exe.debug">
|
||||||
@ -73,9 +73,6 @@
|
|||||||
<fileInfo id="cdt.managedbuild.config.gnu.exe.debug.1846963597.1815042864" name="SRI.h" rcbsApplicability="disable" resourcePath="LM/SRI.h" toolsToInvoke=""/>
|
<fileInfo id="cdt.managedbuild.config.gnu.exe.debug.1846963597.1815042864" name="SRI.h" rcbsApplicability="disable" resourcePath="LM/SRI.h" toolsToInvoke=""/>
|
||||||
<fileInfo id="cdt.managedbuild.config.gnu.exe.debug.1846963597.871386239" name="LDHT.h" rcbsApplicability="disable" resourcePath="LM/LDHT.h" toolsToInvoke=""/>
|
<fileInfo id="cdt.managedbuild.config.gnu.exe.debug.1846963597.871386239" name="LDHT.h" rcbsApplicability="disable" resourcePath="LM/LDHT.h" toolsToInvoke=""/>
|
||||||
<fileInfo id="cdt.managedbuild.config.gnu.exe.debug.1846963597.1761300858" name="ParallelBackoff.h" rcbsApplicability="disable" resourcePath="LM/ParallelBackoff.h" toolsToInvoke=""/>
|
<fileInfo id="cdt.managedbuild.config.gnu.exe.debug.1846963597.1761300858" name="ParallelBackoff.h" rcbsApplicability="disable" resourcePath="LM/ParallelBackoff.h" toolsToInvoke=""/>
|
||||||
<fileInfo id="cdt.managedbuild.config.gnu.exe.debug.1846963597.300346127" name="ptable-lookup.cc" rcbsApplicability="disable" resourcePath="TranslationModel/UG/ptable-lookup.cc" toolsToInvoke="cdt.managedbuild.tool.gnu.cpp.compiler.exe.debug.1729217620.1237671916">
|
|
||||||
<tool id="cdt.managedbuild.tool.gnu.cpp.compiler.exe.debug.1729217620.1237671916" name="GCC C++ Compiler" superClass="cdt.managedbuild.tool.gnu.cpp.compiler.exe.debug.1729217620"/>
|
|
||||||
</fileInfo>
|
|
||||||
<sourceEntries>
|
<sourceEntries>
|
||||||
<entry excluding="TranslationModel/UG/ptable-lookup.cc|TranslationModel/UG/mm/test-http-client.cc|TranslationModel/UG/ptable-describe-features.cc|TranslationModel/UG/count-ptable-features.cc|TranslationModel/UG/try-align2.cc|TranslationModel/UG/try-align.cc|TranslationModel/UG/spe-check-coverage3.cc|TranslationModel/UG/spe-check-coverage2.cc|TranslationModel/UG/spe-check-coverage.cc|TranslationModel/UG/sim-pe.cc|TranslationModel/UG/generic/stringdist|TranslationModel/UG/mm/test-dynamic-im-tsa.cc|TranslationModel/UG/mm/mtt.count.cc|LM/ParallelBackoff.h|LM/ParallelBackoff.cpp|LM/bilingual-lm|LM/MaxEntSRI.h|LM/MaxEntSRI.cpp|LM/BilingualLM.h|LM/BilingualLM.cpp|LM/Rand.h|LM/Rand.cpp|LM/LDHT.h|LM/LDHT.cpp|LM/ORLM.h|LM/ORLM.cpp|LM/NeuralLMWrapper.h|LM/NeuralLMWrapper.cpp|LM/SRI.h|LM/SRI.cpp|LM/IRST.h|LM/IRST.cpp|LM/DALMWrapper.h|LM/DALMWrapper.cpp|LM/oxlm|TranslationModel/UG/util" flags="VALUE_WORKSPACE_PATH|RESOLVED" kind="sourcePath" name=""/>
|
<entry excluding="TranslationModel/UG/ptable-lookup.cc|TranslationModel/UG/mm/test-http-client.cc|TranslationModel/UG/ptable-describe-features.cc|TranslationModel/UG/count-ptable-features.cc|TranslationModel/UG/try-align2.cc|TranslationModel/UG/try-align.cc|TranslationModel/UG/spe-check-coverage3.cc|TranslationModel/UG/spe-check-coverage2.cc|TranslationModel/UG/spe-check-coverage.cc|TranslationModel/UG/sim-pe.cc|TranslationModel/UG/generic/stringdist|TranslationModel/UG/mm/test-dynamic-im-tsa.cc|TranslationModel/UG/mm/mtt.count.cc|LM/ParallelBackoff.h|LM/ParallelBackoff.cpp|LM/bilingual-lm|LM/MaxEntSRI.h|LM/MaxEntSRI.cpp|LM/BilingualLM.h|LM/BilingualLM.cpp|LM/Rand.h|LM/Rand.cpp|LM/LDHT.h|LM/LDHT.cpp|LM/ORLM.h|LM/ORLM.cpp|LM/NeuralLMWrapper.h|LM/NeuralLMWrapper.cpp|LM/SRI.h|LM/SRI.cpp|LM/IRST.h|LM/IRST.cpp|LM/DALMWrapper.h|LM/DALMWrapper.cpp|LM/oxlm|TranslationModel/UG/util" flags="VALUE_WORKSPACE_PATH|RESOLVED" kind="sourcePath" name=""/>
|
||||||
</sourceEntries>
|
</sourceEntries>
|
||||||
@ -157,4 +154,5 @@
|
|||||||
</configuration>
|
</configuration>
|
||||||
</storageModule>
|
</storageModule>
|
||||||
<storageModule moduleId="org.eclipse.cdt.make.core.buildtargets"/>
|
<storageModule moduleId="org.eclipse.cdt.make.core.buildtargets"/>
|
||||||
|
<storageModule moduleId="org.eclipse.cdt.internal.ui.text.commentOwnerProjectMappings"/>
|
||||||
</cproject>
|
</cproject>
|
||||||
|
@ -14,6 +14,7 @@
|
|||||||
#include "moses/TranslationModel/RuleTable/PhraseDictionaryOnDisk.h"
|
#include "moses/TranslationModel/RuleTable/PhraseDictionaryOnDisk.h"
|
||||||
#include "moses/TranslationModel/RuleTable/PhraseDictionaryFuzzyMatch.h"
|
#include "moses/TranslationModel/RuleTable/PhraseDictionaryFuzzyMatch.h"
|
||||||
#include "moses/TranslationModel/RuleTable/PhraseDictionaryALSuffixArray.h"
|
#include "moses/TranslationModel/RuleTable/PhraseDictionaryALSuffixArray.h"
|
||||||
|
#include "moses/TranslationModel/ProbingPT/ProbingPT.h"
|
||||||
|
|
||||||
#include "moses/FF/LexicalReordering/LexicalReordering.h"
|
#include "moses/FF/LexicalReordering/LexicalReordering.h"
|
||||||
|
|
||||||
@ -88,9 +89,6 @@
|
|||||||
#ifdef PT_UG
|
#ifdef PT_UG
|
||||||
#include "moses/TranslationModel/UG/mmsapt.h"
|
#include "moses/TranslationModel/UG/mmsapt.h"
|
||||||
#endif
|
#endif
|
||||||
#ifdef HAVE_PROBINGPT
|
|
||||||
#include "moses/TranslationModel/ProbingPT/ProbingPT.h"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include "moses/LM/Ken.h"
|
#include "moses/LM/Ken.h"
|
||||||
#ifdef LM_IRST
|
#ifdef LM_IRST
|
||||||
@ -224,6 +222,7 @@ FeatureRegistry::FeatureRegistry()
|
|||||||
MOSES_FNAME(PhraseDictionaryTransliteration);
|
MOSES_FNAME(PhraseDictionaryTransliteration);
|
||||||
MOSES_FNAME(PhraseDictionaryDynamicCacheBased);
|
MOSES_FNAME(PhraseDictionaryDynamicCacheBased);
|
||||||
MOSES_FNAME(PhraseDictionaryFuzzyMatch);
|
MOSES_FNAME(PhraseDictionaryFuzzyMatch);
|
||||||
|
MOSES_FNAME(ProbingPT);
|
||||||
MOSES_FNAME2("RuleTable", Syntax::RuleTableFF);
|
MOSES_FNAME2("RuleTable", Syntax::RuleTableFF);
|
||||||
MOSES_FNAME2("SyntaxInputWeight", Syntax::InputWeightFF);
|
MOSES_FNAME2("SyntaxInputWeight", Syntax::InputWeightFF);
|
||||||
|
|
||||||
@ -298,9 +297,6 @@ FeatureRegistry::FeatureRegistry()
|
|||||||
MOSES_FNAME(Mmsapt);
|
MOSES_FNAME(Mmsapt);
|
||||||
MOSES_FNAME2("PhraseDictionaryBitextSampling",Mmsapt); // that's an alias for Mmsapt!
|
MOSES_FNAME2("PhraseDictionaryBitextSampling",Mmsapt); // that's an alias for Mmsapt!
|
||||||
#endif
|
#endif
|
||||||
#ifdef HAVE_PROBINGPT
|
|
||||||
MOSES_FNAME(ProbingPT);
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef HAVE_SYNLM
|
#ifdef HAVE_SYNLM
|
||||||
MOSES_FNAME(SyntacticLanguageModel);
|
MOSES_FNAME(SyntacticLanguageModel);
|
||||||
|
@ -1,12 +1,7 @@
|
|||||||
local current = "" ;
|
local current = "" ;
|
||||||
local includes = ;
|
local includes = ;
|
||||||
if [ option.get "with-probing-pt" : : "yes" ]
|
|
||||||
{
|
fakelib ProbingPT : [ glob *.cpp ] ../..//headers : $(includes) <dependency>$(PT-LOG) : : $(includes) ;
|
||||||
fakelib ProbingPT : [ glob *.cpp ] ../..//headers : $(includes) <dependency>$(PT-LOG) : : $(includes) ;
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
fakelib ProbingPT ;
|
|
||||||
}
|
|
||||||
|
|
||||||
path-constant PT-LOG : bin/pt.log ;
|
path-constant PT-LOG : bin/pt.log ;
|
||||||
update-if-changed $(PT-LOG) $(current) ;
|
update-if-changed $(PT-LOG) $(current) ;
|
||||||
|
Loading…
Reference in New Issue
Block a user