Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/moses-smt/mosesdecoder.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcin Junczys-Dowmunt <junczys@amu.edu.pl>2015-06-21 20:24:53 +0300
committerMarcin Junczys-Dowmunt <junczys@amu.edu.pl>2015-06-21 20:24:53 +0300
commit58f0187e8bd3a49f894cf1815df510d151c46410 (patch)
tree2fce40244ea15f8f37632c0500b6f81e9d32b2b0
parent6151003c1362f7ba12e769c3dd69bf21992ac48e (diff)
parent0f943dd9c10acf4ac0cae5b642175d763594e4b1 (diff)
Merge branch 'master' of github.com:moses-smt/mosesdecoder
-rw-r--r--contrib/other-builds/all.workspace4
-rw-r--r--contrib/other-builds/moses/moses.project2
-rw-r--r--moses/TranslationModel/CompactPT/LexicalReorderingTableCompact.cpp4
-rw-r--r--moses/TranslationModel/CompactPT/PhraseDecoder.cpp4
4 files changed, 7 insertions, 7 deletions
diff --git a/contrib/other-builds/all.workspace b/contrib/other-builds/all.workspace
index 66dafe3d2..621bafdc2 100644
--- a/contrib/other-builds/all.workspace
+++ b/contrib/other-builds/all.workspace
@@ -6,10 +6,10 @@
<Project Name="lm" Path="lm/lm.project" Active="No"/>
<Project Name="OnDiskPt" Path="OnDiskPt/OnDiskPt.project" Active="No"/>
<Project Name="search" Path="search/search.project" Active="No"/>
- <Project Name="moses-cmd" Path="moses-cmd/moses-cmd.project" Active="Yes"/>
+ <Project Name="moses-cmd" Path="moses-cmd/moses-cmd.project" Active="No"/>
<Project Name="score" Path="score/score.project" Active="No"/>
<Project Name="consolidate" Path="consolidate/consolidate.project" Active="No"/>
- <Project Name="moses" Path="moses/moses.project" Active="No"/>
+ <Project Name="moses" Path="moses/moses.project" Active="Yes"/>
<BuildMatrix>
<WorkspaceConfiguration Name="Debug" Selected="yes">
<Project Name="manual-label" ConfigName="Debug"/>
diff --git a/contrib/other-builds/moses/moses.project b/contrib/other-builds/moses/moses.project
index 66e0b9bad..81072d667 100644
--- a/contrib/other-builds/moses/moses.project
+++ b/contrib/other-builds/moses/moses.project
@@ -814,7 +814,7 @@
<ResourceCompiler Options=""/>
</GlobalSettings>
<Configuration Name="Debug" CompilerType="GCC" DebuggerType="LLDB Debugger" Type="Static Library" BuildCmpWithGlobalSettings="append" BuildLnkWithGlobalSettings="append" BuildResWithGlobalSettings="append">
- <Compiler Options="-g" C_Options="-g" Assembler="" Required="yes" PreCompiledHeader="" PCHInCommandLine="no" PCHFlags="" PCHFlagsPolicy="0">
+ <Compiler Options="-g -std=c++0x" C_Options="-g" Assembler="" Required="yes" PreCompiledHeader="" PCHInCommandLine="no" PCHFlags="" PCHFlagsPolicy="0">
<IncludePath Value="."/>
<IncludePath Value="../../../"/>
<IncludePath Value="../../../phrase-extract"/>
diff --git a/moses/TranslationModel/CompactPT/LexicalReorderingTableCompact.cpp b/moses/TranslationModel/CompactPT/LexicalReorderingTableCompact.cpp
index fe475507c..cd71b1776 100644
--- a/moses/TranslationModel/CompactPT/LexicalReorderingTableCompact.cpp
+++ b/moses/TranslationModel/CompactPT/LexicalReorderingTableCompact.cpp
@@ -78,9 +78,9 @@ GetScore(const Phrase& f, const Phrase& e, const Phrase& c)
if(m_hash.GetSize() != index) {
std::string scoresString;
if(m_inMemory)
- scoresString = m_scoresMemory[index];
+ scoresString = m_scoresMemory[index].str();
else
- scoresString = m_scoresMapped[index];
+ scoresString = m_scoresMapped[index].str();
BitWrapper<> bitStream(scoresString);
for(size_t i = 0; i < m_numScoreComponent; i++)
diff --git a/moses/TranslationModel/CompactPT/PhraseDecoder.cpp b/moses/TranslationModel/CompactPT/PhraseDecoder.cpp
index 3cf2f010e..54e6815a1 100644
--- a/moses/TranslationModel/CompactPT/PhraseDecoder.cpp
+++ b/moses/TranslationModel/CompactPT/PhraseDecoder.cpp
@@ -224,9 +224,9 @@ TargetPhraseVectorPtr PhraseDecoder::CreateTargetPhraseCollection(const Phrase &
// Retrieve compressed and encoded target phrase collection
std::string encodedPhraseCollection;
if(m_phraseDictionary.m_inMemory)
- encodedPhraseCollection = m_phraseDictionary.m_targetPhrasesMemory[sourcePhraseId];
+ encodedPhraseCollection = m_phraseDictionary.m_targetPhrasesMemory[sourcePhraseId].str();
else
- encodedPhraseCollection = m_phraseDictionary.m_targetPhrasesMapped[sourcePhraseId];
+ encodedPhraseCollection = m_phraseDictionary.m_targetPhrasesMapped[sourcePhraseId].str();
BitWrapper<> encodedBitStream(encodedPhraseCollection);
if(m_coding == PREnc && bitsLeft)