mirror of
https://github.com/moses-smt/mosesdecoder.git
synced 2024-10-26 19:37:58 +03:00
visual studio
git-svn-id: https://mosesdecoder.svn.sourceforge.net/svnroot/mosesdecoder/trunk@2897 1f5c12ca-751b-0410-a591-d2e778427230
This commit is contained in:
parent
6aff4f1afd
commit
6b1b505089
@ -339,6 +339,10 @@
|
||||
RelativePath=".\src\IOWrapper.cpp"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\src\LatticeMBR.cpp"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\src\Main.cpp"
|
||||
>
|
||||
@ -361,6 +365,10 @@
|
||||
RelativePath=".\src\IOWrapper.h"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\src\LatticeMBR.h"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\src\Main.h"
|
||||
>
|
||||
@ -373,6 +381,10 @@
|
||||
RelativePath=".\src\TranslationAnalysis.h"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\src\utf8.h"
|
||||
>
|
||||
</File>
|
||||
</Filter>
|
||||
<Filter
|
||||
Name="Resource Files"
|
||||
|
@ -451,10 +451,10 @@ vector<Word> calcMBRSol(const TrellisPathList& nBestList, map<Phrase, float>& f
|
||||
}
|
||||
|
||||
if (ngramScore == 0) {
|
||||
ngramScore = log(ngrams->second) + ngramPosterior + log(mbrThetas[(ngrams->first).GetSize()]);
|
||||
ngramScore = log((double) ngrams->second) + ngramPosterior + log(mbrThetas[(ngrams->first).GetSize()]);
|
||||
}
|
||||
else {
|
||||
ngramScore = log_sum(ngramScore, float(log(ngrams->second) + ngramPosterior + log(mbrThetas[(ngrams->first).GetSize()])));
|
||||
ngramScore = log_sum(ngramScore, float(log((double) ngrams->second) + ngramPosterior + log(mbrThetas[(ngrams->first).GetSize()])));
|
||||
}
|
||||
//cout << "Ngram: " << ngrams->first << endl;
|
||||
}
|
||||
|
@ -27,10 +27,9 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
|
||||
#if defined(BOOST_HAS_PTHREADS)
|
||||
#include <pthread.h>
|
||||
#endif
|
||||
|
||||
#include <boost/bind.hpp>
|
||||
#include <boost/thread.hpp>
|
||||
#endif
|
||||
|
||||
#include "Util.h"
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user