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.
2015-03-211. Lifetime of tasks in ThreadPool is now managed via shared pointers.Ulrich Germann
2. Code cleanup in IOWrapper and a bit elsewhere.
2013-05-29beautifyHieu Hoang
2012-11-13move moses/src/* to moses/Hieu Hoang
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-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-03-31Fix indentation.Tetsuo Kiso
2012-03-31Fix indentation.Tetsuo Kiso
2012-03-30added an (optional) positivity constraint to MERTtosch
2012-03-30added an (optional) positivity constraint to MERTtosch
2012-03-18Create files for OptimizerFactory class; add the unit test.Tetsuo Kiso
2012-03-18Create files for OptimizerFactory class; add the unit test.Tetsuo Kiso
2012-03-18Fix a file permission.Tetsuo Kiso
2012-03-18Fix a file permission.Tetsuo Kiso
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-04Use boost::scoped_ptr to avoid resource leaks.Tetsuo Kiso
2012-03-04Use boost::scoped_ptr to avoid resource leaks.Tetsuo Kiso
2012-03-02Fix mert.cpp to work with InterpolatedScorerMatous Machacek
2012-03-02Fix mert.cpp to work with InterpolatedScorerMatous Machacek
2012-02-27Fix a mistake in a previous commit: tuning on a subset of features.Tetsuo Kiso
In the commit 4b6232b757542e7dfd05b6c494d5f97fdb80c448, I thought I had fixed the bug around the tuning on a subset of features by checking whether pdim and the length of the active features which you want to optimize in the tuning. However, it was wrong. I should set Point::optindices appropriately according to specified the subset.
2012-02-27Fix a mistake in a previous commit: tuning on a subset of features.Tetsuo Kiso
In the commit 4b6232b757542e7dfd05b6c494d5f97fdb80c448, I thought I had fixed the bug around the tuning on a subset of features by checking whether pdim and the length of the active features which you want to optimize in the tuning. However, it was wrong. I should set Point::optindices appropriately according to specified the subset.
2012-02-17Add error checking to setup 'to_optimize'.Tetsuo Kiso
mert will check whether the dimension and the number of fetures are equal.
2012-02-17Add error checking to setup 'to_optimize'.Tetsuo Kiso
mert will check whether the dimension and the number of fetures are equal.
2012-02-17Bug fix mert: when you want to optimize fewer features.Tetsuo Kiso
This commit is a temporary bug fix.
2012-02-17Bug fix mert: when you want to optimize fewer features.Tetsuo Kiso
This commit is a temporary bug fix.
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-02-01Create a function to save final weights to a file.Tetsuo Kiso
2012-02-01Create a function to save final weights to a file.Tetsuo Kiso
2012-02-01Use a constant instead of hard-coding.Tetsuo Kiso
2012-02-01Use a constant instead of hard-coding.Tetsuo Kiso
2012-02-01Rename too short variables.Tetsuo Kiso
'D' and 'O' is hard to find when you might want to search by command line tools such as grep.
2012-02-01Rename too short variables.Tetsuo Kiso
'D' and 'O' is hard to find when you might want to search by command line tools such as grep.
2012-02-01Add constans to prevent avoid hard coding many times.Tetsuo Kiso
Default filenames in usage() were differen from the actual ones.
2012-02-01Add constans to prevent avoid hard coding many times.Tetsuo Kiso
Default filenames in usage() were differen from the actual ones.
2012-02-01Add whitespaces.Tetsuo Kiso
2012-02-01Add whitespaces.Tetsuo Kiso
2012-02-01Add 'virtual' keyword for functions in OptimizationTask.Tetsuo Kiso
Adding 'virtual' keyword for an inherited virtual function is good practice because it will let the users know where the function comes from.
2012-02-01Add 'virtual' keyword for functions in OptimizationTask.Tetsuo Kiso
Adding 'virtual' keyword for an inherited virtual function is good practice because it will let the users know where the function comes from.
2012-02-01Create a struct for command line options in mert.Tetsuo Kiso
2012-02-01Create a struct for command line options in mert.Tetsuo Kiso
2012-02-01Delete unused variables.Tetsuo Kiso
2012-02-01Delete unused variables.Tetsuo Kiso