Hieu Hoang
4b0560b5c9
stop printing out UNK when factor == NULL. /Etienne Monneret
2017-06-15 14:26:51 +01:00
Ulrich Germann
8d7dc4b446
Bug fix related to --report-all-factors.
2016-01-12 17:20:29 +00:00
Matthias Huck
f6b0d988d9
eliminate compiler warnings
2016-01-06 17:35:19 +00:00
MosesAdmin
a2431ce62a
daily automatic beautifier
2016-01-06 00:00:41 +00:00
Ulrich Germann
e594211e25
Fix bug in reporting of word alignment info in batch mode.
2016-01-04 22:53:38 +00:00
Ulrich Germann
bb6e0157aa
Code cleanup and refactoring.
2015-12-13 22:31:43 +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
MosesAdmin
59365f2bd3
daily automatic beautifier
2015-12-09 00:00:35 +00:00
Ulrich Germann
c4e45fb128
Code cleanup.
2015-12-07 16:07:11 +00:00
Ulrich Germann
d56d900d6a
Code cleanup.
2015-12-06 01:43:17 +00:00
Ulrich Germann
69e5a1cc15
Code cleanup.
2015-12-06 00:12:01 +00:00
MosesAdmin
157be7cc51
daily automatic beautifier
2015-12-03 00:01:07 +00:00
Ulrich Germann
5a63286447
Code cleanup and bug fix in (Base)Manager::OutputSurface:
...
Mark-up of unkown words in output.
2015-12-02 20:43:56 +00:00
David Madl
5fea16a9a6
move options out of Hypothesis
2015-11-17 16:15:13 +00:00
David Madl
73ab44c126
Hypothesis: get rid of calls into Manager from constructor
2015-11-17 16:15:13 +00:00
Ulrich Germann
f247e26fed
More options refactoring (OOV Handling this time).
2015-11-11 17:07:45 +00:00
Ulrich Germann
806f888c10
Moved placeholder factor variable from StaticData to InputOptions.
2015-11-10 21:44:48 +00:00
Hieu Hoang
d0be56f8ab
Consistent naming: total score -> m_futureScore
2015-11-09 12:44:39 +00:00
Michael Denkowski
3366374d0e
Looks like this wanted to be commented out prior to commit
2015-11-04 12:19:21 -05: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
97b2aa5663
WordsRange -> Range
2015-10-25 13:37:59 +00:00
Hieu Hoang
b7d947ebf6
change dynamic to static cast
2015-10-18 12:41:36 +01:00
MosesAdmin
ecbe68e6f8
daily automatic beautifier
2015-10-16 20:17:00 +01:00
Hieu Hoang
73217dd008
use util::StringStream
2015-10-16 19:03:22 +00:00
MosesAdmin
8e162ce75c
daily automatic beautifier
2015-08-27 00:01:15 +01:00
Hieu Hoang
1dc8eb0cd5
add back OutputPassthroughInformation() /Vincent Nguyen
2015-08-26 13:46:20 +04: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
Ulrich Germann
524109e2ca
Reorganisation of options.
...
The purpose of this effort is to have options local to the individual translation task,
so that they can be changed in the running system in a multi-threaded system.
2015-08-06 21:11:43 +01:00
Philipp Koehn
ec3413f7b5
allow customized prefix/suffix to mark unknown words
2015-07-20 11:40:53 -04:00
Jeroen Vermeulen
0859e9a844
Remove trailing whitespace from C++ files.
2015-05-13 17:05:43 +07:00
Ulrich Germann
d122605c0d
Code reorganization with respect to hypergraph output.
2015-05-12 02:28:58 +01:00
Hieu Hoang
cc8c6b7b10
beautify
2015-05-02 11:45:24 +01:00
Jeroen Vermeulen
eca5824100
Remove trailing whitespace in C++ files.
2015-04-30 12:05:11 +07: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
Matthias Huck
bbcc8bf23b
Merge branch 'master' of https://github.com/moses-smt/mosesdecoder
2015-04-23 18:14:40 +01:00
Matthias Huck
f24f31f965
n-best list creation in phrase-based decoding: improved efficiency with sparse features
2015-04-23 18:13:02 +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
3e2f878576
Merge branch 'master' into mmt-dev
...
Conflicts:
Jamroot
moses/TranslationModel/UG/mmsapt.h
2015-04-05 15:51:50 +01:00
Michael Denkowski
fdf4f5f571
Consistent line ending behavior for alignment printing options
2015-04-03 16:49:41 -04:00
Ulrich Germann
fcbfc5a535
Feature functions and the constructors of TranslationOptionCollections
...
now have access to the current translation task.
This was done to allow context-sensitive processing (if provided by the FF).
2015-03-30 01:20:17 +01: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
b3ff4ff13a
Managers have now access to the entire translation task.
2015-03-26 16:37:04 +00:00
Ulrich Germann
ddea89312e
Commented out an #include that triggered a 'deprecated header' warning.
2015-03-09 00:08:31 +00:00
Hieu Hoang
05ead45e71
beautify
2015-01-14 11:07:42 +00:00
Hieu Hoang
0552a79b1e
consistent constructor for all managers
2015-01-03 00:10:15 +05:30
Hieu Hoang
1ff52ebb0e
move OutputBest() from TranslationTask to Manager
2015-01-02 23:39:27 +05:30
Hieu Hoang
c9d49f22a5
move OutputAlignment() to Manager class
2014-12-30 20:36:59 +05:30
Hieu Hoang
ba166f109c
moving more stuff out of IOWrapper
2014-12-30 18:53:30 +05:30