From 6bf2870f1860d4822ae0803ffe8c2c1fe641252f Mon Sep 17 00:00:00 2001 From: Hieu Hoang Date: Tue, 27 Nov 2012 16:31:42 +0000 Subject: [PATCH] move the rest of DynSA to TranslationModel/ --- contrib/other-builds/moses/.project | 262 ++++++++++++++++-- .../BilingualDynSuffixArray.cpp | 6 +- .../BilingualDynSuffixArray.h | 6 +- .../{ => TranslationModel}/DynSuffixArray.cpp | 0 moses/{ => TranslationModel}/DynSuffixArray.h | 4 +- .../PhraseDictionaryDynSuffixArray.h | 2 +- 6 files changed, 250 insertions(+), 30 deletions(-) rename moses/{ => TranslationModel}/BilingualDynSuffixArray.cpp (99%) rename moses/{ => TranslationModel}/BilingualDynSuffixArray.h (98%) rename moses/{ => TranslationModel}/DynSuffixArray.cpp (100%) rename moses/{ => TranslationModel}/DynSuffixArray.h (96%) diff --git a/contrib/other-builds/moses/.project b/contrib/other-builds/moses/.project index 4ec42f1cf..dbf59c1ea 100644 --- a/contrib/other-builds/moses/.project +++ b/contrib/other-builds/moses/.project @@ -106,16 +106,6 @@ 1 PARENT-3-PROJECT_LOC/moses/AlignmentInfoTest.cpp - - BilingualDynSuffixArray.cpp - 1 - PARENT-3-PROJECT_LOC/moses/BilingualDynSuffixArray.cpp - - - BilingualDynSuffixArray.h - 1 - PARENT-3-PROJECT_LOC/moses/BilingualDynSuffixArray.h - BitmapContainer.cpp 1 @@ -371,16 +361,6 @@ 1 PARENT-3-PROJECT_LOC/moses/DummyScoreProducers.h - - DynSuffixArray.cpp - 1 - PARENT-3-PROJECT_LOC/moses/DynSuffixArray.cpp - - - DynSuffixArray.h - 1 - PARENT-3-PROJECT_LOC/moses/DynSuffixArray.h - FFState.cpp 1 @@ -1069,7 +1049,7 @@ TranslationModel 2 - PARENT-3-PROJECT_LOC/moses/TranslationModel + virtual:/virtual TranslationOption.cpp @@ -1816,6 +1796,101 @@ 1 PARENT-3-PROJECT_LOC/moses/Scope3Parser/VarSpanTrieBuilder.h + + TranslationModel/BilingualDynSuffixArray.cpp + 1 + PARENT-3-PROJECT_LOC/moses/TranslationModel/BilingualDynSuffixArray.cpp + + + TranslationModel/BilingualDynSuffixArray.h + 1 + PARENT-3-PROJECT_LOC/moses/TranslationModel/BilingualDynSuffixArray.h + + + TranslationModel/DynSAInclude + 2 + virtual:/virtual + + + TranslationModel/DynSuffixArray.cpp + 1 + PARENT-3-PROJECT_LOC/moses/TranslationModel/DynSuffixArray.cpp + + + TranslationModel/DynSuffixArray.h + 1 + PARENT-3-PROJECT_LOC/moses/TranslationModel/DynSuffixArray.h + + + TranslationModel/Jamfile + 1 + PARENT-3-PROJECT_LOC/moses/TranslationModel/Jamfile + + + TranslationModel/PhraseDictionary.cpp + 1 + PARENT-3-PROJECT_LOC/moses/TranslationModel/PhraseDictionary.cpp + + + TranslationModel/PhraseDictionary.h + 1 + PARENT-3-PROJECT_LOC/moses/TranslationModel/PhraseDictionary.h + + + TranslationModel/PhraseDictionaryDynSuffixArray.cpp + 1 + PARENT-3-PROJECT_LOC/moses/TranslationModel/PhraseDictionaryDynSuffixArray.cpp + + + TranslationModel/PhraseDictionaryDynSuffixArray.h + 1 + PARENT-3-PROJECT_LOC/moses/TranslationModel/PhraseDictionaryDynSuffixArray.h + + + TranslationModel/PhraseDictionaryMemory.cpp + 1 + PARENT-3-PROJECT_LOC/moses/TranslationModel/PhraseDictionaryMemory.cpp + + + TranslationModel/PhraseDictionaryMemory.h + 1 + PARENT-3-PROJECT_LOC/moses/TranslationModel/PhraseDictionaryMemory.h + + + TranslationModel/PhraseDictionaryNode.cpp + 1 + PARENT-3-PROJECT_LOC/moses/TranslationModel/PhraseDictionaryNode.cpp + + + TranslationModel/PhraseDictionaryNode.h + 1 + PARENT-3-PROJECT_LOC/moses/TranslationModel/PhraseDictionaryNode.h + + + TranslationModel/PhraseDictionaryTree.cpp + 1 + PARENT-3-PROJECT_LOC/moses/TranslationModel/PhraseDictionaryTree.cpp + + + TranslationModel/PhraseDictionaryTree.h + 1 + PARENT-3-PROJECT_LOC/moses/TranslationModel/PhraseDictionaryTree.h + + + TranslationModel/PhraseDictionaryTreeAdaptor.cpp + 1 + PARENT-3-PROJECT_LOC/moses/TranslationModel/PhraseDictionaryTreeAdaptor.cpp + + + TranslationModel/PhraseDictionaryTreeAdaptor.h + 1 + PARENT-3-PROJECT_LOC/moses/TranslationModel/PhraseDictionaryTreeAdaptor.h + + + TranslationModel/fuzzy-match + 2 + virtual:/virtual + CompactPT/bin/gcc-4.6 2 @@ -1836,6 +1911,151 @@ 1 PARENT-3-PROJECT_LOC/moses/LM/bin/lm.log + + TranslationModel/DynSAInclude/FileHandler.cpp + 1 + PARENT-3-PROJECT_LOC/moses/TranslationModel/DynSAInclude/FileHandler.cpp + + + TranslationModel/DynSAInclude/FileHandler.h + 1 + PARENT-3-PROJECT_LOC/moses/TranslationModel/DynSAInclude/FileHandler.h + + + TranslationModel/DynSAInclude/Jamfile + 1 + PARENT-3-PROJECT_LOC/moses/TranslationModel/DynSAInclude/Jamfile + + + TranslationModel/DynSAInclude/RandLMCache.h + 1 + PARENT-3-PROJECT_LOC/moses/TranslationModel/DynSAInclude/RandLMCache.h + + + TranslationModel/DynSAInclude/RandLMFilter.h + 1 + PARENT-3-PROJECT_LOC/moses/TranslationModel/DynSAInclude/RandLMFilter.h + + + TranslationModel/DynSAInclude/fdstream.h + 1 + PARENT-3-PROJECT_LOC/moses/TranslationModel/DynSAInclude/fdstream.h + + + TranslationModel/DynSAInclude/hash.h + 1 + PARENT-3-PROJECT_LOC/moses/TranslationModel/DynSAInclude/hash.h + + + TranslationModel/DynSAInclude/onlineRLM.h + 1 + PARENT-3-PROJECT_LOC/moses/TranslationModel/DynSAInclude/onlineRLM.h + + + TranslationModel/DynSAInclude/params.cpp + 1 + PARENT-3-PROJECT_LOC/moses/TranslationModel/DynSAInclude/params.cpp + + + TranslationModel/DynSAInclude/params.h + 1 + PARENT-3-PROJECT_LOC/moses/TranslationModel/DynSAInclude/params.h + + + TranslationModel/DynSAInclude/perfectHash.h + 1 + PARENT-3-PROJECT_LOC/moses/TranslationModel/DynSAInclude/perfectHash.h + + + TranslationModel/DynSAInclude/quantizer.h + 1 + PARENT-3-PROJECT_LOC/moses/TranslationModel/DynSAInclude/quantizer.h + + + TranslationModel/DynSAInclude/types.h + 1 + PARENT-3-PROJECT_LOC/moses/TranslationModel/DynSAInclude/types.h + + + TranslationModel/DynSAInclude/utils.h + 1 + PARENT-3-PROJECT_LOC/moses/TranslationModel/DynSAInclude/utils.h + + + TranslationModel/DynSAInclude/vocab.cpp + 1 + PARENT-3-PROJECT_LOC/moses/TranslationModel/DynSAInclude/vocab.cpp + + + TranslationModel/DynSAInclude/vocab.h + 1 + PARENT-3-PROJECT_LOC/moses/TranslationModel/DynSAInclude/vocab.h + + + TranslationModel/fuzzy-match/Alignments.cpp + 1 + PARENT-3-PROJECT_LOC/moses/TranslationModel/fuzzy-match/Alignments.cpp + + + TranslationModel/fuzzy-match/Alignments.h + 1 + PARENT-3-PROJECT_LOC/moses/TranslationModel/fuzzy-match/Alignments.h + + + TranslationModel/fuzzy-match/FuzzyMatchWrapper.cpp + 1 + PARENT-3-PROJECT_LOC/moses/TranslationModel/fuzzy-match/FuzzyMatchWrapper.cpp + + + TranslationModel/fuzzy-match/FuzzyMatchWrapper.h + 1 + PARENT-3-PROJECT_LOC/moses/TranslationModel/fuzzy-match/FuzzyMatchWrapper.h + + + TranslationModel/fuzzy-match/Match.h + 1 + PARENT-3-PROJECT_LOC/moses/TranslationModel/fuzzy-match/Match.h + + + TranslationModel/fuzzy-match/SentenceAlignment.cpp + 1 + PARENT-3-PROJECT_LOC/moses/TranslationModel/fuzzy-match/SentenceAlignment.cpp + + + TranslationModel/fuzzy-match/SentenceAlignment.h + 1 + PARENT-3-PROJECT_LOC/moses/TranslationModel/fuzzy-match/SentenceAlignment.h + + + TranslationModel/fuzzy-match/SuffixArray.cpp + 1 + PARENT-3-PROJECT_LOC/moses/TranslationModel/fuzzy-match/SuffixArray.cpp + + + TranslationModel/fuzzy-match/SuffixArray.h + 1 + PARENT-3-PROJECT_LOC/moses/TranslationModel/fuzzy-match/SuffixArray.h + + + TranslationModel/fuzzy-match/Vocabulary.cpp + 1 + PARENT-3-PROJECT_LOC/moses/TranslationModel/fuzzy-match/Vocabulary.cpp + + + TranslationModel/fuzzy-match/Vocabulary.h + 1 + PARENT-3-PROJECT_LOC/moses/TranslationModel/fuzzy-match/Vocabulary.h + + + TranslationModel/fuzzy-match/create_xml.cpp + 1 + PARENT-3-PROJECT_LOC/moses/TranslationModel/fuzzy-match/create_xml.cpp + + + TranslationModel/fuzzy-match/create_xml.h + 1 + PARENT-3-PROJECT_LOC/moses/TranslationModel/fuzzy-match/create_xml.h + CompactPT/bin/gcc-4.6/release 2 diff --git a/moses/BilingualDynSuffixArray.cpp b/moses/TranslationModel/BilingualDynSuffixArray.cpp similarity index 99% rename from moses/BilingualDynSuffixArray.cpp rename to moses/TranslationModel/BilingualDynSuffixArray.cpp index c78c01deb..0d90067c6 100644 --- a/moses/BilingualDynSuffixArray.cpp +++ b/moses/TranslationModel/BilingualDynSuffixArray.cpp @@ -1,8 +1,8 @@ #include "BilingualDynSuffixArray.h" #include "moses/TranslationModel/DynSAInclude/utils.h" -#include "FactorCollection.h" -#include "StaticData.h" -#include "TargetPhrase.h" +#include "moses/FactorCollection.h" +#include "moses/StaticData.h" +#include "moses/TargetPhrase.h" #include using namespace std; diff --git a/moses/BilingualDynSuffixArray.h b/moses/TranslationModel/BilingualDynSuffixArray.h similarity index 98% rename from moses/BilingualDynSuffixArray.h rename to moses/TranslationModel/BilingualDynSuffixArray.h index 2e93e1943..bbf238114 100644 --- a/moses/BilingualDynSuffixArray.h +++ b/moses/TranslationModel/BilingualDynSuffixArray.h @@ -1,13 +1,13 @@ #ifndef moses_BilingualDynSuffixArray_h #define moses_BilingualDynSuffixArray_h -#include "TargetPhrase.h" #include "DynSuffixArray.h" #include "moses/TranslationModel/DynSAInclude/vocab.h" #include "moses/TranslationModel/DynSAInclude/types.h" #include "moses/TranslationModel/DynSAInclude/utils.h" -#include "InputFileStream.h" -#include "FactorTypeSet.h" +#include "moses/InputFileStream.h" +#include "moses/FactorTypeSet.h" +#include "moses/TargetPhrase.h" namespace Moses { diff --git a/moses/DynSuffixArray.cpp b/moses/TranslationModel/DynSuffixArray.cpp similarity index 100% rename from moses/DynSuffixArray.cpp rename to moses/TranslationModel/DynSuffixArray.cpp diff --git a/moses/DynSuffixArray.h b/moses/TranslationModel/DynSuffixArray.h similarity index 96% rename from moses/DynSuffixArray.h rename to moses/TranslationModel/DynSuffixArray.h index fd41472f2..024d6daf1 100644 --- a/moses/DynSuffixArray.h +++ b/moses/TranslationModel/DynSuffixArray.h @@ -5,8 +5,8 @@ #include #include #include -#include "Util.h" -#include "File.h" +#include "moses/Util.h" +#include "moses/File.h" #include "moses/TranslationModel/DynSAInclude/types.h" namespace Moses diff --git a/moses/TranslationModel/PhraseDictionaryDynSuffixArray.h b/moses/TranslationModel/PhraseDictionaryDynSuffixArray.h index ebad9ad61..25d8d6eb1 100644 --- a/moses/TranslationModel/PhraseDictionaryDynSuffixArray.h +++ b/moses/TranslationModel/PhraseDictionaryDynSuffixArray.h @@ -4,7 +4,7 @@ #include #include "moses/TranslationModel/PhraseDictionary.h" -#include "moses/BilingualDynSuffixArray.h" +#include "moses/TranslationModel/BilingualDynSuffixArray.h" namespace Moses {