diff options
author | Hieu Hoang <hieu@hoang.co.uk> | 2014-06-13 13:20:30 +0400 |
---|---|---|
committer | Hieu Hoang <hieu@hoang.co.uk> | 2014-06-13 13:20:30 +0400 |
commit | 9e43830c6e9dbe8182dc38c03efcc36fe9b10294 (patch) | |
tree | ec7ed937489188ed92e3eaf3f7d7c93a55cbde65 | |
parent | 2c6cdb5889103caaa921923b079c379d5cf3597e (diff) |
bjam for ProbingPT
-rw-r--r-- | misc/CreateProbingPT.cpp | 2 | ||||
-rw-r--r-- | misc/Jamfile | 14 | ||||
-rw-r--r-- | misc/QueryProbingPT.cpp | 4 | ||||
-rw-r--r-- | moses/TranslationModel/ProbingPT/Jamfile | 4 |
4 files changed, 18 insertions, 6 deletions
diff --git a/misc/CreateProbingPT.cpp b/misc/CreateProbingPT.cpp index 96ae797f8..3ea369a96 100644 --- a/misc/CreateProbingPT.cpp +++ b/misc/CreateProbingPT.cpp @@ -1,5 +1,5 @@ #include "util/usage.hh" -#include "storing.hh" +#include "moses/TranslationModel/ProbingPT/storing.hh" diff --git a/misc/Jamfile b/misc/Jamfile index 76f91babb..e3deff874 100644 --- a/misc/Jamfile +++ b/misc/Jamfile @@ -25,4 +25,16 @@ else { alias programsMin ; } -alias programs : 1-1-Extraction TMining generateSequences processPhraseTable processLexicalTable queryPhraseTable queryLexicalTable programsMin ; +if [ option.get "with-probing-pt" : : "yes" ] +{ + exe CreateProbingPT : CreateProbingPT.cpp ../moses//moses ; + exe QueryProbingPT : QueryProbingPT.cpp ../moses//moses ; + + #alias programsProbing : CreateProbingPT QueryProbingPT ; + alias programsProbing : CreateProbingPT ; +} +else { + alias programsProbing ; +} + +alias programs : 1-1-Extraction TMining generateSequences processPhraseTable processLexicalTable queryPhraseTable queryLexicalTable programsMin programsProbing ; diff --git a/misc/QueryProbingPT.cpp b/misc/QueryProbingPT.cpp index 3b1c04184..86a6824b8 100644 --- a/misc/QueryProbingPT.cpp +++ b/misc/QueryProbingPT.cpp @@ -8,7 +8,7 @@ #include "util/probing_hash_table.hh" #include "util/usage.hh" -#include "quering.hh" +#include "moses/TranslationModel/ProbingPT/quering.hh" #include <stdio.h> #include <sys/types.h> @@ -57,4 +57,4 @@ int main(int argc, char* argv[]) { util::PrintUsage(std::cout); return 0; -}
\ No newline at end of file +} diff --git a/moses/TranslationModel/ProbingPT/Jamfile b/moses/TranslationModel/ProbingPT/Jamfile index f609d4714..d30ae3486 100644 --- a/moses/TranslationModel/ProbingPT/Jamfile +++ b/moses/TranslationModel/ProbingPT/Jamfile @@ -1,7 +1,7 @@ local current = "" ; local includes = ; -local with-probing-pt = [ option.get "with-probing-pt" ] ; -if $(with-probing-pt) { +if [ option.get "with-probing-pt" : : "yes" ] +{ fakelib ProbingPT : [ glob *.cpp ] ../..//headers : $(includes) <dependency>$(PT-LOG) : : $(includes) ; } else { |