mosesdecoder/mert
Tetsuo Kiso fe79b96328 Use std::stringstream instead of using snprintf() for Windows.
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-18 23:47:48 +09:00
..
example Put global variables in mert/util.cpp in anonymous space. 2012-02-20 08:02:23 +09:00
TER Change the naming conventions for the guard macros; Rename TER directory. 2012-02-20 09:46:08 +09:00
test_scorer_data normalisation script 2008-05-14 17:17:44 +00:00
BleuScorer.cpp Add test cases for BLEU and sentence-level BLEU+1. 2012-04-07 01:02:32 +09:00
BleuScorer.h Add test cases for BLEU and sentence-level BLEU+1. 2012-04-07 01:02:32 +09:00
BleuScorerTest.cpp Add const to return values of overloaded operators. 2012-04-12 09:16:27 +09:00
CderScorer.cpp Fixed bug in CderScorer.cpp 2012-03-17 23:35:56 +01:00
CderScorer.h Clean up. 2012-02-26 13:04:27 +09:00
Data.cpp Use std::stringstream instead of using snprintf() for Windows. 2012-04-18 23:47:48 +09:00
Data.h Add a function to check whether a string ends with a suffix. 2012-04-04 22:04:51 +09:00
DataTest.cpp Add a function to check whether a string ends with a suffix. 2012-04-04 22:04:51 +09:00
evaluator.cpp Pass by pointers to Scorer instead of references. 2012-03-10 17:28:38 +09:00
extractor.cpp Clean up Data; add TODOs. 2012-03-10 17:47:01 +09:00
FeatureArray.cpp Remove hard-coded "/dev/stdout". 2012-03-10 19:04:43 +09:00
FeatureArray.h Clean up accessors and mutators. 2012-03-10 19:27:52 +09:00
FeatureData.cpp Use std::stringstream instead of using snprintf() for Windows. 2012-04-18 23:47:48 +09:00
FeatureData.h added an (optional) positivity constraint to MERT 2012-03-30 11:50:23 +02:00
FeatureDataIterator.cpp Finish and test feature and score data iterators. 2011-11-15 13:12:14 +00:00
FeatureDataIterator.h Change the naming conventions for the guard macros; Rename TER directory. 2012-02-20 09:46:08 +09:00
FeatureDataTest.cpp Use std::stringstream instead of using snprintf() for Windows. 2012-04-18 23:47:48 +09:00
FeatureStats.cpp Remove hard-coded "/dev/stdout". 2012-03-10 19:04:43 +09:00
FeatureStats.h Clean up accessors and mutators. 2012-03-10 19:27:52 +09:00
FileStream.cpp Rename gzfilebuf.h; apply coding style. 2012-03-20 23:48:52 +09:00
FileStream.h Remove hard-coded "/dev/stdout". 2012-03-10 19:04:43 +09:00
GzFileBuf.cpp Fix a compile error I missed when developing on OS X. 2012-03-21 00:18:44 +09:00
GzFileBuf.h Move the GzFileBuf implementation into .cpp file. 2012-03-21 00:11:54 +09:00
init.opt add init.opt file 2008-05-16 12:35:17 +00:00
InterpolatedScorer.cpp Pass by pointers to Scorer instead of references. 2012-03-10 17:28:38 +09:00
InterpolatedScorer.h mert: Prefix private members with "m_" except TER. 2012-03-10 17:12:34 +09:00
Jamfile Reduce the number of calling the numeric_limits constructor. 2012-04-12 05:19:11 +09:00
MergeScorer.cpp mert: Prefix private members with "m_" except TER. 2012-03-10 17:12:34 +09:00
MergeScorer.h mert: Prefix private members with "m_" except TER. 2012-03-10 17:12:34 +09:00
mert.cpp Fix indentation. 2012-03-31 10:43:54 +09:00
Ngram.h Merge branch 'master' of github.com:moses-smt/mosesdecoder into cleanup-mert 2012-03-20 03:46:17 +09:00
NgramTest.cpp Move Encoder class from Scorer.h to Ngram.h. 2012-03-19 23:21:02 +09:00
Optimizer.cpp Prefix a private member of Optimizer with "m_". 2012-03-31 10:39:59 +09:00
Optimizer.h Reduce the number of calling the numeric_limits constructor. 2012-04-12 05:19:11 +09:00
OptimizerFactory.cpp Fix indentation. 2012-03-31 10:43:54 +09:00
OptimizerFactory.h added an (optional) positivity constraint to MERT 2012-03-30 11:50:23 +02:00
OptimizerFactoryTest.cpp Fix a warning: comparison between signed and unsigned integers. 2012-03-31 10:47:28 +09:00
PerScorer.cpp Support for using factors in mert and evaluator 2012-02-28 02:27:23 +01:00
PerScorer.h mert: Prefix private members with "m_" except TER. 2012-03-10 17:12:34 +09:00
Point.cpp Pass by reference instead of returning objects. 2012-04-12 09:40:52 +09:00
Point.h Pass by reference instead of returning objects. 2012-04-12 09:40:52 +09:00
PointTest.cpp Add const to return values of overloaded operators. 2012-04-12 09:16:27 +09:00
pro.cpp Add test cases for BLEU and sentence-level BLEU+1. 2012-04-07 01:02:32 +09:00
Reference.h Add some functions to BleuScorer for unit testing. 2012-03-19 22:45:15 +09:00
ReferenceTest.cpp Create Reference class to clean up BleuScorer. 2012-03-18 05:58:40 +09:00
ScopedVector.h mert: Prefix private members with "m_" except TER. 2012-03-10 17:12:34 +09:00
ScoreArray.cpp Remove hard-coded "/dev/stdout". 2012-03-10 19:04:43 +09:00
ScoreArray.h Clean up accessors and mutators. 2012-03-10 19:27:52 +09:00
ScoreData.cpp Remove hard-coded "/dev/stdout". 2012-03-10 19:04:43 +09:00
ScoreData.h Clean up accessors and mutators. 2012-03-10 19:27:52 +09:00
ScoreDataIterator.cpp Complete initial version of pro extractor 2011-11-16 14:54:23 +00:00
ScoreDataIterator.h Change the naming conventions for the guard macros; Rename TER directory. 2012-02-20 09:46:08 +09:00
Scorer.cpp Add thread unsafe Singleton class. 2012-03-20 05:49:10 +09:00
Scorer.h Add thread unsafe Singleton class. 2012-03-20 05:49:10 +09:00
ScorerFactory.cpp Added SemposScorer to mert and evaluator 2012-03-23 14:39:24 +01:00
ScorerFactory.h Change the naming conventions for the guard macros; Rename TER directory. 2012-02-20 09:46:08 +09:00
ScoreStats.cpp Remove hard-coded "/dev/stdout". 2012-03-10 19:04:43 +09:00
ScoreStats.h Clean up accessors and mutators. 2012-03-10 19:27:52 +09:00
SemposOverlapping.cpp Added posibility to weight words in sempos 2012-03-24 16:07:47 +01:00
SemposOverlapping.h Added posibility to weight words in sempos 2012-03-24 16:07:47 +01:00
SemposScorer.cpp Fix a warning; remove duplicate function calls. 2012-04-05 12:49:49 +09:00
SemposScorer.h Added posibility to weight words in sempos 2012-03-24 16:07:47 +01:00
Singleton.h Add thread unsafe Singleton class. 2012-03-20 05:49:10 +09:00
SingletonTest.cpp Add thread unsafe Singleton class. 2012-03-20 05:49:10 +09:00
TerScorer.cpp Support for using factors in mert and evaluator 2012-02-28 02:27:23 +01:00
TerScorer.h Change the naming conventions for the guard macros; Rename TER directory. 2012-02-20 09:46:08 +09:00
test_scorer.cpp run beautify.perl. Consistent formatting for .h & .cpp files 2011-02-24 12:42:19 +00:00
Timer.cpp Use std::stringstream instead of using snprintf() for Windows. 2012-04-18 23:47:48 +09:00
Timer.h Change the private member function in mert/Timer. 2012-03-03 23:49:17 +09:00
TimerTest.cpp Delete assertions to check elapsed CPU time. 2012-03-03 23:24:08 +09:00
TODO Update mert/TODO 2012-04-08 22:47:20 +09:00
Types.h Change the naming conventions for the guard macros; Rename TER directory. 2012-02-20 09:46:08 +09:00
Util.cpp Change mert/Timer. 2012-02-27 08:34:51 +09:00
Util.h Add const to return values of overloaded operators. 2012-04-12 09:16:27 +09:00
UtilTest.cpp Fix a grammar error; add more test case. 2012-04-05 10:10:16 +09:00
Vocabulary.cpp Add thread unsafe Singleton class. 2012-03-20 05:49:10 +09:00
Vocabulary.h Add thread unsafe Singleton class. 2012-03-20 05:49:10 +09:00
VocabularyTest.cpp Add thread unsafe Singleton class. 2012-03-20 05:49:10 +09:00