Commit Graph

13929 Commits

Author SHA1 Message Date
Jeroen Vermeulen
85acdc62b1 Make build instructions a bit less discouraging. 2015-04-30 11:45:59 +07:00
Ulrich Germann
324b1a9b56 Merge branch 'master' of https://github.com/moses-smt/mosesdecoder 2015-04-29 20:20:54 +01:00
Ulrich Germann
e4f5c69109 One step closer to eliminating the requirement to provide num-features=... in the config file.
Some FF (Mmsapt, LexicalReordering, Many single-value FF) provide this number during "registration";
when missing, a default weight vector of uniform 1.0 is automatically generated. This eliminates the
need for the user to figure out what the exact number of features is for each FF, which can get complicated,
e.g. in the case of Mmsapt/PhraseDictionaryBitextSampling.
2015-04-29 20:16:52 +01:00
Ulrich Germann
c76f1c338d Uninitialized variable. 2015-04-29 20:16:43 +01:00
Ulrich Germann
d99479d5a3 Bug fix. 2015-04-29 20:11:34 +01:00
Ulrich Germann
8b2e5ea0be No try { ... } catch { ... } in debug mode. 2015-04-29 20:07:03 +01:00
Ulrich Germann
1c37f92d77 Missing return value. 2015-04-29 20:06:08 +01:00
Jeroen Vermeulen
616b589da3 Fix a bunch of compiler warnings.
Warnings are useful, but only if there are few!
2015-04-29 21:18:51 +07:00
Hieu Hoang
8f9bf7ea38 add -config 2015-04-28 15:03:59 +04:00
Hieu Hoang
7c19add821 Merge branch 'master' of github.com:moses-smt/mosesdecoder 2015-04-28 12:30:19 +04:00
Hieu Hoang
b7792b227a script to convert arabic to bw, and vice versa 2015-04-28 12:29:58 +04:00
Hieu Hoang
e6951aa9f2 codelite 2015-04-27 23:01:14 +04:00
Hieu Hoang
0ee4feecb5 add extra parser argument to ChartCellCollection to support FF::EvaluateGivenAllOtherTransOpts() 2015-04-27 22:41:47 +04:00
Ulrich Germann
315610c02a Merge branch 'master' of https://github.com/moses-smt/mosesdecoder 2015-04-27 16:39:40 +01:00
Ulrich Germann
0c74610fc2 Merge branch 'master' of https://github.com/ugermann/mosesdecoder 2015-04-27 16:37:48 +01:00
Ulrich Germann
ba6e17ce26 Code reorganization. 2015-04-27 16:31:22 +01:00
Ulrich Germann
37bb1de9ed Unused variable. 2015-04-27 16:30:59 +01:00
Hieu Hoang
8adad4fc2e exec permission 2015-04-27 17:39:49 +04:00
Hieu Hoang
a47fc00635 option to output factors 2015-04-27 17:35:19 +04:00
Rico Sennrich
da648fd65b fix some RDLM training options 2015-04-27 10:52:16 +01:00
alvations
ce55bc4de4 Merge pull request #109 from alvations/master
Added threads options for filter-model-given-input.pl
2015-04-26 20:40:39 +02:00
alvations
d4d9f179f9 Merge branch 'moses-smt-master' 2015-04-26 20:38:47 +02:00
alvations
fa30ea6712 Merge branch 'master' of https://github.com/moses-smt/mosesdecoder into moses-smt-master 2015-04-26 20:38:27 +02:00
alvations
4a68c42b16 syncing to latest moses version 2015-04-26 20:37:10 +02:00
alvations
ec54ea3c4f put back some of the difference made after RELEASE3.0 and incorporated it with the -threads parameter 2015-04-26 20:30:15 +02:00
alvations
c01b0a6262 merging the filter-model-given-input.pl with alvations-master branch 2015-04-26 20:25:15 +02:00
alvations
dda3ddd80b Merge branch 'master' of https://github.com/moses-smt/mosesdecoder 2015-04-26 20:23:39 +02:00
Ulrich Germann
fbf8b1f8b8 Code design debizarrification: Indexes of feature functions into the dense vector of all feature
values are now stored on the feature function instead of in a global map that is a static
member of ScoreComponentCollection.
2015-04-26 16:46:36 +01:00
Ulrich Germann
e63561ae7f Unused variable. 2015-04-26 15:41:32 +01:00
Hieu Hoang
41529227b2 boost unique lock 2015-04-26 18:11:11 +04:00
Ulrich Germann
075963540a Bug fix for compilation with --with-xmlrpc-c=... 2015-04-26 14:26:39 +01:00
Ulrich Germann
3d2da45bdf Fixed jam files for the case where xmlrpc-c is not available. 2015-04-26 12:39:50 +01:00
Ulrich Germann
bafe60c3a1 Make sure things work when curl-based biasing is disabled. 2015-04-26 03:14:40 +01:00
Ulrich Germann
4390bcdffd boost/thread/lock_guard.hpp not found with Boost v1.46. 2015-04-26 03:13:19 +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
alvations
e1fcc8082a use integer type when reading options instead of checking for undef. it's more elegant. 2015-04-24 19:30:40 +02:00
alvations
d453ccc9f5 removed wrongly added perl script... 2015-04-24 19:14:04 +02:00
alvations
0ccbcaece6 added $threads option in usage example 2015-04-24 19:11:57 +02:00
alvations
aa9207acfc fixed typo in $thread to $threads 2015-04-24 19:10:10 +02:00
alvations
6c63ca963c checks for undefined $threads 2015-04-24 19:06:37 +02:00
alvations
585784f62a added thread options for filter-model-given-input.pl 2015-04-24 18:57:28 +02:00
Jeroen Vermeulen
10bd942127 Seed the randomizer once, not every time.
This bit of mira code used to re-seed the randomizer on every call, instead
of just once on startup.  The result of time(NULL) was used as a seed, meaning
that every such call to the randomizer within the same second would return the
same value.
2015-04-24 20:00:07 +07:00
Matthias Huck
55a4789a8b cleanup 2015-04-23 18:38:01 +01:00
Matthias Huck
3920e22c98 Merge branch 'master' of https://github.com/moses-smt/mosesdecoder 2015-04-23 18:25:13 +01:00
Jeroen Vermeulen
8ac91c8d97 Fix unqualified call to rand_excl().
The call needed to be made explicitly to util::rand_excl().  Sorry.
2015-04-24 00:22:25 +07: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
Matthias Huck
388e180afc Merge branch 'master' of https://github.com/moses-smt/mosesdecoder 2015-04-23 17:42:53 +01:00
Matthias Huck
7457099f51 SparseReordering: option to use pre-tuned feature weights internally 2015-04-23 17:25:02 +01:00