Commit Graph

2916 Commits

Author SHA1 Message Date
Tetsuo Kiso
c5f8c7d33a Move regularizaion type into StatisticsBasedScorer.
The type is used as internal purpose.
2012-02-01 20:58:49 +09:00
Tetsuo Kiso
cb729ad3a5 Add prefix 'm_' to private and protected members in Scorer classes. 2012-02-01 20:54:20 +09:00
Tetsuo Kiso
947e30ac3b Delete unused enums. 2012-02-01 20:26:25 +09:00
Tetsuo Kiso
3ac41ff2d7 Move reference length type into a private member of BleuScorer.
The reason is that the type is used as internal purpose.
2012-02-01 20:24:48 +09:00
Tetsuo Kiso
671a2f8c33 Bug fix: memory leak issues when using MergeScorer. 2012-02-01 18:13:32 +09:00
Tetsuo Kiso
4373c07cf0 Change casts to C++ style casts. 2012-02-01 18:13:00 +09:00
Tetsuo Kiso
194e24115a Change casts to C++ style casts, and delete unnecessary casts. 2012-02-01 17:17:58 +09:00
Tetsuo Kiso
380f550cf3 Create a function to save final weights to a file. 2012-02-01 16:59:48 +09:00
Tetsuo Kiso
2a7d2a395f Use a constant instead of hard-coding. 2012-02-01 16:51:25 +09:00
Tetsuo Kiso
79fd25d0c4 Pass std::string objects by const reference instead of by value. 2012-02-01 16:46:36 +09:00
Tetsuo Kiso
12ccef6d50 Rename too short variables.
'D' and 'O' is hard to find when you might want to
search by command line tools such as grep.
2012-02-01 16:39:38 +09:00
Tetsuo Kiso
b7507a84b2 Add constans to prevent avoid hard coding many times.
Default filenames in usage() were differen from the actual ones.
2012-02-01 16:33:23 +09:00
Tetsuo Kiso
5b30f52fbe Add whitespaces. 2012-02-01 16:15:22 +09:00
Tetsuo Kiso
cac1e14d50 Add 'virtual' keyword for functions in OptimizationTask.
Adding 'virtual' keyword for an inherited virtual function is good
practice because it will let the users know where the function
comes from.
2012-02-01 15:49:33 +09:00
Tetsuo Kiso
8341d68a2b Add explicit to the ThreadPool constructor. 2012-02-01 15:33:26 +09:00
Tetsuo Kiso
7c843dbe3f Create a struct for command line options in mert. 2012-02-01 15:21:49 +09:00
Tetsuo Kiso
3c9f44494e Delete unused variables. 2012-02-01 12:37:41 +09:00
Tetsuo Kiso
d4b9536d43 Introduce anonymous namespace. 2012-02-01 12:35:50 +09:00
Tetsuo Kiso
345448f950 Add whitespaces. 2012-02-01 12:29:45 +09:00
Tetsuo Kiso
99f4158d44 Create a struct for command line options in extractor. 2012-02-01 12:23:15 +09:00
Tetsuo Kiso
4fb90867b0 Create a wrapper function to init seed.
Move g_bootstrap from a global variable to
a member of struct ProgramOption.
2012-02-01 11:49:26 +09:00
Tetsuo Kiso
ad24930547 Create a struct for command line options.
Add a wrapper function to parse the options, too.
2012-02-01 11:27:17 +09:00
Barry Haddow
e7c497484f Merge branch 'master' of github.com:moses-smt/mosesdecoder 2012-01-31 15:14:08 +00:00
Barry Haddow
d4d38cd859 error checking 2012-01-31 15:13:59 +00:00
Rico Sennrich
1b229137fa tmcombine (translation model combination) 2012-01-31 10:50:20 +01:00
Tetsuo Kiso
8d5e0cbe02 Create a utility class for mert/evaluator.cpp to avoid name collisions, just in case.
And introduce anonymous namespace for the class and global variables
as well.
2012-01-27 04:06:36 +09:00
Tetsuo Kiso
0bf69e840a Add whitespaces. 2012-01-27 03:39:13 +09:00
Tetsuo Kiso
cd292a2449 Add prefixe 'g_' to global variables in mert/evaluator.cpp
While the size of mert/evaluator.cpp is still relatively small,
adding the marker to the variables allows us to easily distinguish
them from local variables.
2012-01-27 03:24:51 +09:00
Hieu Hoang
f2e475d48f xcode 2012-01-26 21:54:33 +07:00
Hieu Hoang
3de86c5724 undo start-translation-id arg, as per email from Sandra Noubours 2012-01-26 21:24:05 +07:00
Phil Williams
30df272cd5 moses_chart: add an alternative parser that implements the algorithm outlined
in Hopkins and Langmead (2010).  This allows parsing of scope-3 grammars with
cubic space and time requirements.  Enabled using the new "parsing-algorithm"
parameter (supports in-memory rule tables only).
2012-01-26 11:38:40 +00:00
Phil Williams
99b65d3d9a Move some more source files into moses/src/RuleTable 2012-01-26 10:45:20 +00:00
Phil Williams
039bd5bd4c Create a subdirectory in moses/src for the main CYK+ source files. 2012-01-25 23:14:36 +00:00
Phil Williams
d0af7167f8 moses_chart: rule lookup now produces a vector of stack pointers (and a
TargetPhraseCollection pointer) instead of a CYK+ dotted rule.
2012-01-25 12:26:28 +00:00
Matous Machacek
b3096acdec mert/evaluator should now compute confidence interval correctly 2012-01-24 21:25:15 +01:00
Matous Machacek
1b96e55ca8 Merge branch 'master' of github.com:moses-smt/mosesdecoder 2012-01-24 19:39:27 +01:00
Matous Machacek
40f720aee6 fixed bugs in mert/evaluator, nicer printing of results 2012-01-24 19:18:44 +01:00
Hieu Hoang
89d4743bad rollback accidental commit 2012-01-24 18:04:44 +07:00
Hieu Hoang
5ae2a24878 add --sort-batch-size arg to train-model.perl 2012-01-24 18:00:45 +07:00
phikoehn
df6c71a276 Merge branch 'master' of git://github.com/moses-smt/mosesdecoder 2012-01-24 10:14:04 +00:00
phikoehn
79efdef247 added comments to config files 2012-01-24 10:13:19 +00:00
Phil Williams
2af7451fe8 Merge branch 'master' of /home/s0898777/moses-local/master 2012-01-23 20:44:56 +00:00
Phil Williams
c69abefec7 Add RuleTableTrie, an abstract base class of PhraseDictionarySCFG. 2012-01-23 20:41:49 +00:00
Hieu Hoang
a47bfea3cd xcode 2012-01-23 23:53:26 +07:00
Hieu Hoang
1104940e38 Merge branch 'master' of github.com:moses-smt/mosesdecoder 2012-01-23 23:34:57 +07:00
Phil Williams
4bebd1be17 Create a subdirectory in moses/src for rule table source files. 2012-01-23 16:05:32 +00:00
Hieu Hoang
f41a0a689e Merge branch 'master' of github.com:moses-smt/mosesdecoder 2012-01-23 22:14:31 +07:00
Hieu Hoang
6fe2fe0afc Revert "Revert "fixed ems bug when no interpolated LMs are used""
This reverts commit 2a4b65986e.
2012-01-23 22:13:01 +07:00
Hieu Hoang
2a4b65986e Revert "fixed ems bug when no interpolated LMs are used"
This reverts commit ba469d27a5.
2012-01-23 22:12:04 +07:00
Phil Williams
991a97e935 Use boost::unordered_map for faster lookup in ChartCell and ChartCellLabelSet. 2012-01-23 14:19:19 +00:00