Commit Graph

602 Commits

Author SHA1 Message Date
MosesAdmin
743a63b6d3 daily automatic beautifier 2017-03-05 00:00:41 +00:00
Ulrich Germann
5282ad667c Global scope for VW training. 2016-06-16 14:22:58 +01:00
Ulrich Germann
29694af6e4 Code cleanup and refactoring. 2015-12-11 01:09:22 +00:00
Ulrich Germann
240b88c683 Passing around AllOptions or references thereto everywhere,
strong them locally where appropriate, so that compontents can
become independent of StaticData once instantiated.
2015-12-09 23:05:00 +00:00
Ulrich Germann
69e5a1cc15 Code cleanup. 2015-12-06 00:12:01 +00:00
David Madl
3b63930943 move global Timer to Timer.h
Move ResetUserTime(), PrintUserTime(), GetUserTime() to Timer.h

Do not reset timer in StaticData.
2015-11-17 16:15:13 +00:00
MosesAdmin
dad1bd6127 daily automatic beautifier 2015-11-12 00:00:40 +00:00
Ulrich Germann
9826599cb0 Enforce const-ness of command line arguments; bug fix in mosesserver.cpp. 2015-11-11 01:08:05 +00:00
MosesAdmin
f38976aba0 daily automatic beautifier 2015-11-02 00:00:37 +00:00
Ulrich Germann
324c378f7f Options refactoring. Moses crashed in server mode when asked to provide n-best translations with scores. 2015-10-31 12:50:52 +00:00
Hieu Hoang
fbaeccb772 use util::StringStream 2015-10-16 19:03:22 +00:00
Hieu Hoang
cfb1ab34c7 use util::StringStream 2015-10-16 19:03:22 +00:00
MosesAdmin
21aa5af640 daily automatic beautifier 2015-08-08 00:00:45 +01:00
Ulrich Germann
6c1d9e2431 More reorganisation of options. 2015-08-06 22:52:34 +01:00
Hieu Hoang
efdb8566b1 delete ChangeSource(). Not used 2015-06-02 21:00:32 +04:00
Hieu Hoang
cc8c6b7b10 beautify 2015-05-02 11:45:24 +01:00
Ulrich Germann
0d72cdd72c Merge branch 'master' of https://github.com/moses-smt/mosesdecoder into mmt-dev
Conflicts:
	moses/Syntax/F2S/Manager-inl.h
	moses/TranslationModel/UG/mmsapt.cpp
2015-04-26 02:12:16 +01:00
Jeroen Vermeulen
38d790cac0 Add cross-platform randomizer module.
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-23 23:46:04 +07:00
Ulrich Germann
9dc75bfd8a Managers and feature functions now have access to the entire TranslationTask, not just the InputType. 2015-03-26 18:25:54 +00:00
Ulrich Germann
8ca11d941d 1. Lifetime of tasks in ThreadPool is now managed via shared pointers.
2. Code cleanup in IOWrapper and a bit elsewhere.
2015-03-21 16:12:52 +00:00
James Zhang
8b61f396a7 Simple structure change to make moses main() function available in libmoses.a 2015-02-05 14:43:45 -05:00
Hieu Hoang
05ead45e71 beautify 2015-01-14 11:07:42 +00:00
Marcin Junczys-Dowmunt
c2b6da0134 small changes 2015-01-08 16:45:40 +01:00
Marcin Junczys-Dowmunt
558f0411c9 added skeleton for vwtrainer 2015-01-08 14:54:47 +01:00
Hieu Hoang
cec03c949e merge RunPb and RunChart 2015-01-04 16:30:15 +05:30
Hieu Hoang
0552a79b1e consistent constructor for all managers 2015-01-03 00:10:15 +05:30
Hieu Hoang
b82c31f020 convert static methods to const methods 2014-12-30 08:38:33 +05:30
Nicola Bertoldi
e4eb201c52 merged master into dynamic-models and solved conflicts 2014-12-13 12:52:47 +01:00
Hieu Hoang
4b10c59bea add OutputSearchGraphHypergraph() to API framework. Move m_source to BaseManager 2014-12-05 21:33:59 +00:00
Hieu Hoang
6a77fd0ce3 add OutputSearchGraphSLF() to API framework 2014-12-05 19:40:51 +00:00
Hieu Hoang
23ca29a2ea add Decode to API framework 2014-12-05 17:59:53 +00:00
Hieu Hoang
3da8415095 add OutputNBest() as abstract method to BaseManager. Tighten up framework 2014-12-02 19:09:10 +00:00
Hieu Hoang
2fdd49d973 start cleanup of IOWrapper. Constructor takes no args 2014-12-01 15:26:47 +00:00
Ulrich Germann
7aa4d5d8d5 Merge branch 'master' of https://github.com/moses-smt/mosesdecoder
Conflicts:
	moses-cmd/simulate-pe.cc
2014-11-20 17:55:51 +00:00
Hieu Hoang
646874d77b simulated post editing 2014-11-20 17:38:02 +00:00
Hieu Hoang
9e5be78a7d simulated post editing 2014-11-20 17:28:50 +00:00
Hieu Hoang
8137aeae43 Small changes to Parameters and StaticData 2014-11-20 11:21:50 +00:00
Nicola Bertoldi
626c9d7a84 improvement on passthrough information 2014-11-18 15:02:26 +01:00
Ulrich Germann
e9f192e65f Fixed after changes to the Moses code structure. 2014-11-16 16:32:41 +00:00
Ulrich Germann
e64257f7ee Adapted to new location of TranslationAnalysis.h. 2014-10-23 11:10:35 -07:00
Hieu Hoang
90e4eca0a3 cleaning up IOWrapper. Make all functions member of the class 2014-10-13 12:46:58 +01:00
Hieu Hoang
93d11e3626 merge moses_chart and moses 2014-10-10 15:09:56 +01:00
Hieu Hoang
89f8c7d284 get ready to merge IOWrapper 2014-10-09 17:28:57 +01:00
Hieu Hoang
bf089b56ac consistent namespace 2014-10-09 12:52:06 +01:00
Nicola Bertoldi
88ec4925f2 minor change 2014-10-08 12:34:36 +02:00
Nicola Bertoldi
582ece5035 minor change 2014-10-08 12:31:38 +02:00
Hieu Hoang
433186ae25 delete lineNumber variable from Manager and TranslationTask. It should always be carried by the input sentence itself 2014-10-07 19:16:30 +01:00
Hieu Hoang
541c569f42 Merge ../mosesdecoder into merge-cmd 2014-10-07 11:09:41 +01:00
Hieu Hoang
2f290f1d6d standardize GetIOWrapper(). 2014-10-03 16:08:15 +01:00
Hieu Hoang
65bd64ca6a move lattice sample collector from Main to IOWrapper 2014-10-03 15:30:06 +01:00