mirror of
https://github.com/moses-smt/mosesdecoder.git
synced 2024-09-11 11:25:40 +03:00
- Add a high resolution timing function to measure the wall-clock time by gettimeofday(). - Now the Timer class use getrusage() to measure the elapsed CPU time as KenLM does. - Revive Timer::restart(). - Add Timer::ToString() for reporting the detail statistics as well as for debugging. - Add a simple unit test for Timer.
51 lines
1.1 KiB
Plaintext
51 lines
1.1 KiB
Plaintext
import testing ;
|
|
|
|
lib m ;
|
|
|
|
lib mert_lib :
|
|
Util.cpp
|
|
FileStream.cpp
|
|
Timer.cpp
|
|
ScoreStats.cpp ScoreArray.cpp ScoreData.cpp
|
|
ScoreDataIterator.cpp
|
|
FeatureStats.cpp FeatureArray.cpp FeatureData.cpp
|
|
FeatureDataIterator.cpp
|
|
Data.cpp
|
|
BleuScorer.cpp
|
|
Point.cpp
|
|
PerScorer.cpp
|
|
Scorer.cpp
|
|
ScorerFactory.cpp
|
|
Optimizer.cpp
|
|
TER/alignmentStruct.cpp
|
|
TER/hashMap.cpp
|
|
TER/hashMapStringInfos.cpp
|
|
TER/stringHasher.cpp
|
|
TER/terAlignment.cpp
|
|
TER/terShift.cpp
|
|
TER/hashMapInfos.cpp
|
|
TER/infosHasher.cpp
|
|
TER/stringInfosHasher.cpp
|
|
TER/tercalc.cpp
|
|
TER/tools.cpp
|
|
TerScorer.cpp
|
|
CderScorer.cpp
|
|
MergeScorer.cpp
|
|
../util//kenutil m ..//z ;
|
|
|
|
exe mert : mert.cpp mert_lib ../moses/src//ThreadPool ;
|
|
|
|
exe extractor : extractor.cpp mert_lib ;
|
|
|
|
exe evaluator : evaluator.cpp mert_lib ;
|
|
|
|
exe pro : pro.cpp mert_lib ..//boost_program_options ;
|
|
|
|
alias programs : mert extractor evaluator pro ;
|
|
|
|
unit-test data_test : DataTest.cpp mert_lib ..//boost_unit_test_framework ;
|
|
unit-test timer_test : TimerTest.cpp mert_lib ..//boost_unit_test_framework ;
|
|
unit-test util_test : UtilTest.cpp mert_lib ..//boost_unit_test_framework ;
|
|
|
|
install legacy : programs : <location>. ;
|