Lane Schwartz
6c356958b0
Reordered initialization of member variables within SyntacticLanguageModel.
...
Doing this gets rid of a gcc warning message.
2012-03-30 16:24:57 -04:00
Lane Schwartz
afa2da4099
Added dummy implementation of EvaluateChart to SyntacticLanguageModel.
...
The EvaluateChart method is now required by the parent class FeatureFunction.
This implementation simply throws a runtime error,
because the syntactic language model is incremental in nature,
and as such is not well defined for chart parsing algorithms.
2012-03-30 16:21:39 -04:00
Lane Schwartz
1c455a2877
Fixed memory leak for single-threaded mode.
2012-03-30 15:25:42 -04:00
Hieu Hoang
cebf88f39e
typedef error on mac
2012-03-30 18:33:50 +07:00
tosch
47ee26951e
added an (optional) positivity constraint to MERT
2012-03-30 11:50:23 +02:00
phikoehn
1d9f043e8f
added support tp specify translation options via xml for chart decoder
2012-03-28 04:29:24 +01:00
Matous Machacek
81eab37970
Merge branch 'master' of github.com:moses-smt/mosesdecoder
2012-03-25 15:51:22 +02:00
Tetsuo Kiso
d2ff30791c
Use assertions in the test case.
2012-03-25 21:31:44 +09:00
Matous Machacek
d9c7b86ccb
Added posibility to weight words in sempos
2012-03-24 16:07:47 +01:00
Matous Machacek
8ba0aed8f7
Changed maximum scores constant to be able to experiment with more sempos classes
2012-03-23 23:42:00 +01:00
Tetsuo Kiso
e0c29f414a
Remove unecessary headers; fix indentation.
2012-03-24 04:12:33 +09:00
Matous Machacek
bbe9a06d62
Merge pull request #10 from moses-smt/apply-coding-standard
...
Clean up SemposScorer and Overlapping classes
2012-03-23 11:12:56 -07:00
Matous Machacek
e0408d80fd
Fixed compilation error
2012-03-23 19:09:04 +01:00
Tetsuo Kiso
f0ed7779d7
Remove unnecessary headers; prefix private members with "m_".
...
- Add const.
- Add a virtual destructor to abstract class.
- Add some TODOs to some constant values.
Create files for "overlapping" classes.
2012-03-24 02:39:04 +09:00
Matous Machacek
ca4ba7eb79
Added SemposScorer to mert and evaluator
2012-03-23 14:39:24 +01:00
phikoehn
bc7bb053d5
scripts to escape moses specific characters
2012-03-23 07:21:17 +00:00
phikoehn
80e756b201
Merge branch 'master' of git://github.com/moses-smt/mosesdecoder
2012-03-23 07:17:34 +00:00
phikoehn
4048734a59
bug fix to filter hierarchical
2012-03-23 07:17:08 +00:00
Tetsuo Kiso
90543c6c22
Add error check when opening a file.
2012-03-22 21:51:00 +09:00
phikoehn
76d2a19741
only filter rule and reordering tables, if the tables changes, not just when weights or other settings changed
2012-03-22 00:13:02 +00:00
phikoehn
1213b9114a
mop up
2012-03-21 00:38:05 +00:00
Tetsuo Kiso
8ffa48e530
Merge branch 'master' of github.com:moses-smt/mosesdecoder
2012-03-21 00:22:52 +09:00
Tetsuo Kiso
ae60572123
Fix a compile error I missed when developing on OS X.
2012-03-21 00:18:44 +09:00
Tetsuo Kiso
6540c4d8ac
Move the GzFileBuf implementation into .cpp file.
...
Add error check when gzopen() fails.
2012-03-21 00:11:54 +09:00
Tetsuo Kiso
ccae7bae6e
Rename gzfilebuf.h; apply coding style.
2012-03-20 23:48:52 +09:00
Kenneth Heafield
d2854583c3
Merge branch 'master' of github.com:moses-smt/mosesdecoder
2012-03-20 10:45:40 -04:00
Kenneth Heafield
d8c0d3a775
Add comments to moses/src/LM/Jamfile
2012-03-20 10:45:16 -04:00
Tetsuo Kiso
3a73c5990d
Use assertions in the test case.
...
It gets easier to detect the point of failure in the test.
2012-03-20 16:57:57 +09:00
phikoehn
048e0f8de4
lotsa minor changes: mostly bug fixes, tokenizer now esacapes special Moses characters (|<>&)
2012-03-20 04:57:37 +00:00
Tetsuo Kiso
82ae12249c
Add an unit test for BleuScorer.
...
The test contains only ngram counting. More tests for calculating
BLEU score are reuiqred.
2012-03-20 05:52:35 +09:00
Tetsuo Kiso
6c64d94b29
Add thread unsafe Singleton class.
...
- Add Vocabulary factory and the unit test.
- Remove Scorer::ClearVocabulary().
2012-03-20 05:49:10 +09:00
Tetsuo Kiso
ebf87d6154
Merge branch 'master' of github.com:moses-smt/mosesdecoder into cleanup-mert
2012-03-20 03:46:17 +09:00
Tetsuo Kiso
3b77ef5006
Change the Encoder class to Vocabulary.
...
- Introduce the namespace to avoid naming collisions. The class name
is used in KenLM.
- Add the unit test.
2012-03-20 03:43:04 +09:00
Christian Buck
ec784d969c
updated typename
2012-03-19 17:35:17 +00:00
Christian Buck
d0b5c09b9e
changed size_t to std::size_t for gcc4.6
2012-03-19 17:32:55 +00:00
Christian Buck
0cdc22ac49
Merge branch 'master' of github.com:moses-smt/mosesdecoder
2012-03-19 17:31:36 +00:00
Tetsuo Kiso
a65165f227
Move Encoder class from Scorer.h to Ngram.h.
...
To add unit tests.
2012-03-19 23:21:02 +09:00
Tetsuo Kiso
0edf7d3774
Add some functions to BleuScorer for unit testing.
...
This commit also includes
- Fix typo.
- Fix indentations.
- Add 'const' to Scorer::applyFactors().
2012-03-19 22:45:15 +09:00
Tetsuo Kiso
724b5cbb37
Create files for OptimizerFactory class; add the unit test.
2012-03-18 13:08:38 +09:00
Tetsuo Kiso
82c683758f
Pass parameters by const reference.
2012-03-18 12:32:11 +09:00
Tetsuo Kiso
e08392962a
Fix a file permission.
2012-03-18 10:52:40 +09:00
Matous Machacek
b89d02b4a9
Fixed bug in CderScorer.cpp
2012-03-17 23:35:56 +01:00
Tetsuo Kiso
812140274b
Create Reference class to clean up BleuScorer.
...
- Add an unit test for Reference.
- Move functions to calculate the reference length from
BleuScorer to Reference.
2012-03-18 05:58:40 +09:00
Christian Buck
bff09a932a
Merge branch 'master' of github.com:moses-smt/mosesdecoder
2012-03-16 02:57:49 +00:00
Hieu Hoang
0faca41e11
xcode
2012-03-15 20:31:27 +07:00
Hieu Hoang
186b7adb26
Merge branch 'master' of github.com:moses-smt/mosesdecoder
2012-03-15 13:40:18 +07:00
Hieu Hoang
91b2804fbf
xcode
2012-03-15 13:26:54 +07:00
Tetsuo Kiso
8a9385ad09
Clean up BleuScorer.
2012-03-14 22:44:51 +09:00
Tetsuo Kiso
519abd7675
Clean up BleuScorer with lookup().
2012-03-14 22:41:29 +09:00
Tetsuo Kiso
52d8053b0e
Create a header file for NgramCounts class.
...
The reason is that we want to add the unit test.
2012-03-14 22:14:11 +09:00