|
Joshua
open source statistical hierarchical phrase-based machine translation system
|
Public Member Functions | |
| WordPenaltyFF (int featureID, double weight) | |
| double | estimateLogP (final Rule rule, int sentID) |
Static Private Attributes | |
| static final double | OMEGA = -Math.log10(Math.E) |
| joshua.decoder.ff.WordPenaltyFF.WordPenaltyFF | ( | int | featureID, |
| double | weight | ||
| ) |
| double joshua.decoder.ff.WordPenaltyFF.estimateLogP | ( | final Rule | rule, |
| int | sentID | ||
| ) |
Each additional word gets a penalty. The more number of words, the more negative. So, to encourage longer sentence, we should have a negative weight on the feature
final double joshua.decoder.ff.WordPenaltyFF.OMEGA = -Math.log10(Math.E) [static, private] |