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
AgeCommit message (Collapse)Author
2015-04-23Add cross-platform randomizer module.Jeroen Vermeulen
The code uses two mechanisms for generating random numbers: srand()/rand(), which is not thread-safe, and srandom()/random(), which is POSIX-specific. Here I add a util/random.cc module that centralizes these calls, and unifies some common usage patterns. If the implementation is not good enough, we can now change it in a single place. To keep things simple, this uses the portable srand()/rand() but protects them with a lock to avoid concurrency problems. The hard part was to keep the regression tests passing: they rely on fixed sequences of random numbers, so a small code change could break them very thoroughly. Util::rand(), for wide types like size_t, calls std::rand() not once but twice. This behaviour was generalized into utils::wide_rand() and friends.
2015-04-22Thread-safe, platform-agnostic randomizer.Jeroen Vermeulen
Some places in mert use srandom()/random(), but these are POSIX-specific. The standard alternative, srand()/rand(), is not thread-safe. This module wraps srand()/rand() in mutexes (very short-lived, so should not cost much) so that it relies on just Boost and the C standard library, not on a Unix-like environment. This may reduce the width of the random numbers on some platforms: it goes from "long int" to just "int". If that is a problem, we may have to use Boost's randomizer utilities, or eventually, the C++ ones.
2014-12-13merged master into dynamic-models and solved conflictsNicola Bertoldi
2014-09-22(optionally) use n-best file for evaluator/return-best-devRico Sennrich
this adds support for metrics that rely on alignment / trees
2014-09-22HWCM for MERTRico Sennrich
2014-01-15beautifyNicola Bertoldi
2013-11-18replace CHECK with UTIL_THROW_IF in mertHieu Hoang
2013-05-29beautifyHieu Hoang
2013-05-17fixes for sparse feature handlingphikoehn
2012-12-16don't display unknown weight penalty when showing weight, don't usually ↵hieu
tune. Also, change delimiter in mert extractor from : to =
2012-12-06Use FilePiece to load N-best lists.Tetsuo Kiso
Since FilePiece is friendly with StringPiece.
2012-12-06Use util::TokenIter to tokenize n-best lists.Tetsuo Kiso
Reduce creating std::string objects, too. In both ScoreArray and FeatureArray classes, the private members to track sentence indices (namely, "m_index") were unnecessarily declared as std::string, but it's better to directly declare them as 'int'.
2012-12-06Untabify.Tetsuo Kiso
2012-09-27Merge remote branch 'github/master' into miramergeBarry Haddow
Compiles, but not tested. Had to disable relent filter. Strangely, it seems to contain the whole of moses-cmd. Conflicts: Jamroot OnDiskPt/TargetPhrase.cpp moses-cmd/src/Main.cpp moses/src/AlignmentInfo.cpp moses/src/AlignmentInfo.h moses/src/ChartTranslationOptionCollection.cpp moses/src/ChartTranslationOptionCollection.h moses/src/GenerationDictionary.cpp moses/src/Jamfile moses/src/Parameter.cpp moses/src/PhraseDictionary.cpp moses/src/StaticData.cpp moses/src/StaticData.h moses/src/TargetPhrase.h moses/src/TranslationSystem.cpp moses/src/TranslationSystem.h moses/src/Word.cpp phrase-extract/score.cpp regression-testing/Jamfile scripts/ems/experiment.meta scripts/ems/experiment.perl scripts/training/train-model.perl
2012-09-24Fixed several bugs in LRscore-MERT. Namely, solved a float-to-int ↵Arianna Bisazza
conversion; added hypothesis counter to the scores file to enable later computation of average reordering score; fixed special case of 1-word hypothesis; enabled reading of word-based alignments from n-best-list.
2012-07-17Merge branch 'trunk' into miramergeBarry Haddow
Compiles, not tested. Conflicts: Jamroot OnDiskPt/PhraseNode.h OnDiskPt/TargetPhrase.cpp OnDiskPt/TargetPhrase.h OnDiskPt/TargetPhraseCollection.cpp mert/BleuScorer.cpp mert/Data.cpp mert/FeatureData.cpp moses-chart-cmd/src/Main.cpp moses/src/AlignmentInfo.h moses/src/ChartManager.cpp moses/src/LM/Ken.cpp moses/src/LM/Ken.h moses/src/LMList.h moses/src/LexicalReordering.h moses/src/PhraseDictionaryTree.h moses/src/ScoreIndexManager.h moses/src/StaticData.h moses/src/TargetPhrase.h moses/src/Word.cpp scripts/ems/experiment.meta scripts/ems/experiment.perl scripts/training/train-model.perl
2012-07-10Integrate Lexi's LR Score into tuningHieu Hoang
2012-06-30namespace all classes in mert directoryHieu Hoang
2012-05-25Merge branch 'trunk' into miramerge. Still to fix build.Barry Haddow
Conflicts: Jamroot mert/Data.cpp mert/Data.h mert/FeatureArray.cpp mert/FeatureArray.h mert/FeatureData.cpp mert/FeatureData.h mert/FeatureStats.cpp mert/FeatureStats.h mert/mert.cpp moses-chart-cmd/src/IOWrapper.h moses-chart-cmd/src/Main.cpp moses-cmd/src/IOWrapper.cpp moses-cmd/src/IOWrapper.h moses-cmd/src/Main.cpp moses/src/GlobalLexicalModel.cpp moses/src/Jamfile moses/src/Parameter.cpp moses/src/PhraseDictionary.cpp moses/src/ScoreIndexManager.h moses/src/TargetPhrase.h regression-testing/tests/phrase.lexicalized-reordering-bin/truth/results.txt regression-testing/tests/phrase.lexicalized-reordering-cn/truth/results.txt regression-testing/tests/phrase.lexicalized-reordering/truth/results.txt regression-testing/tests/phrase.multiple-translation-system-lr/truth/results.txt regression-testing/tests/phrase.show-weights.lex-reorder/truth/results.txt regression-testing/tests/phrase.show-weights/truth/results.txt scripts/ems/experiment.meta scripts/ems/experiment.perl scripts/training/filter-model-given-input.pl scripts/training/mert-moses.pl
2012-05-06Fix using directive refers to implicitly-defined namespace 'std'.Tetsuo Kiso
2012-05-06Fix using directive refers to implicitly-defined namespace 'std'.Tetsuo Kiso
2012-04-18Use std::stringstream instead of using snprintf() for Windows.Tetsuo Kiso
This commit fixes compilation problems related to snprintf() for Windows users. Thanks to Raka Prasetya for reporting the errors. Thanks also to Kenneth Heafield and Barry Haddow for suggestions.
2012-04-18Use std::stringstream instead of using snprintf() for Windows.Tetsuo Kiso
This commit fixes compilation problems related to snprintf() for Windows users. Thanks to Raka Prasetya for reporting the errors. Thanks also to Kenneth Heafield and Barry Haddow for suggestions.
2012-04-04Use EndsWith().Tetsuo Kiso
2012-04-04Use EndsWith().Tetsuo Kiso
2012-04-04Add a function to check whether a string ends with a suffix.Tetsuo Kiso
- Use the function in Data::InitFeatureMap(). - Add an unit test for InitFeatureMap(). - Move helper functions for Data::loadnbest() to public for unit testing.
2012-04-04Add a function to check whether a string ends with a suffix.Tetsuo Kiso
- Use the function in Data::InitFeatureMap(). - Add an unit test for InitFeatureMap(). - Move helper functions for Data::loadnbest() to public for unit testing.
2012-03-10Clean up Data; add TODOs.Tetsuo Kiso
2012-03-10Clean up Data; add TODOs.Tetsuo Kiso
2012-03-10Pass by pointers to Scorer instead of references.Tetsuo Kiso
2012-03-10Pass by pointers to Scorer instead of references.Tetsuo Kiso
2012-03-10mert: Prefix private members with "m_" except TER.Tetsuo Kiso
Squashed commit of the following: - Clean up PRO. - Clean up ScoreStats. - Clean up ScoreData. - Clean up ScoreArray. - Remove unnecessary headers. - Clean up ScopedVector. - Clean up Point. - Clean up PerScorer. - Clean up Optimizer. - Clean up MergeScorer. - Clean up InterpolatedScorer. - Clean up FileStream. - Clean up FeatureStats. - Remove inefficient string concatenation. - Clean up FeatureData. - Clean up FeatureArray. - Clean up Data.
2012-03-10mert: Prefix private members with "m_" except TER.Tetsuo Kiso
Squashed commit of the following: - Clean up PRO. - Clean up ScoreStats. - Clean up ScoreData. - Clean up ScoreArray. - Remove unnecessary headers. - Clean up ScopedVector. - Clean up Point. - Clean up PerScorer. - Clean up Optimizer. - Clean up MergeScorer. - Clean up InterpolatedScorer. - Clean up FileStream. - Clean up FeatureStats. - Remove inefficient string concatenation. - Clean up FeatureData. - Clean up FeatureArray. - Clean up Data.
2012-03-07Remove an unused variable and unnecessary 'std::'.Tetsuo Kiso
2012-03-07Remove an unused variable and unnecessary 'std::'.Tetsuo Kiso
2012-03-07Remove an unused variable.Tetsuo Kiso
2012-03-07Remove an unused variable.Tetsuo Kiso
2012-03-07Clean up Data::loadnbest().Tetsuo Kiso
Add helper functions.
2012-03-07Clean up Data::loadnbest().Tetsuo Kiso
Add helper functions.
2012-02-20Fix typo.Tetsuo Kiso
2012-02-20Fix typo.Tetsuo Kiso
2012-02-08Fix sharding bugBarry Haddow
2012-02-08Fix sharding bugBarry Haddow
2012-02-01Change casts to C++ style casts, and delete unnecessary casts.Tetsuo Kiso
2012-02-01Change casts to C++ style casts, and delete unnecessary casts.Tetsuo Kiso
2012-01-13Implementation of feature-merging for pro-mertBarry Haddow
2011-12-12uint -> size_tHieu Hoang
2011-12-12uint -> size_tHieu Hoang
2011-12-12revertHieu Hoang
2011-12-12revertHieu Hoang