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
Hieu Hoang
62fe00b1a5
delete m_latticeSamplesCollector
2014-10-03 15:04:55 +01:00
Hieu Hoang
056913df57
delete nbestOut
2014-10-03 12:30:18 +01:00
Michael Denkowski
26666986f3
Update TranslationAnalysis location for simulate-pe
2014-10-02 18:34:34 -04:00
Hieu Hoang
b907fb7492
merge TranslationTask and IOWrapper. Move m_wordGraphCollector into IOWrapper
2014-10-02 14:57:04 +01:00
Hieu Hoang
f8b762a6ec
merge TranslationTask and IOWrapper. Move m_detailedTranslationCollector into IOWrapper
2014-10-02 14:18:12 +01:00
Hieu Hoang
c45967c9b4
merge TranslationTask and IOWrapper. Move m_searchGraphOutputCollector into IOWrapper
2014-10-02 12:20:49 +01:00
Hieu Hoang
0843a2a901
merge TranslationTask and IOWrapper. Move m_alignmentInfoCollector into IOWrapper
2014-10-02 11:22:52 +01:00
Hieu Hoang
00365257fa
merge TranslationTask and IOWrapper. Move m_unknownsStream into IOWrapper
2014-10-01 19:24:58 +01:00
Hieu Hoang
8611dc8cdf
merge TranslationTask and IOWrapper. Move m_nBestOutputCollector into IOWrapper
2014-10-01 18:21:57 +01:00
Hieu Hoang
8d0f74c6e4
merge TranslationTask and IOWrapper. Move m_singleBestOutputCollector into IOWrapper
2014-10-01 17:43:51 +01:00
Hieu Hoang
33ed15ef19
move misc common functions into moses/
2014-09-30 14:22:38 +01:00