Joshua
open source statistical hierarchical phrase-based machine translation system
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends
joshua.decoder.segment_file.ConstraintRule.Type Enum Reference

List of all members.

Public Attributes

 RULE
 LHS

Detailed Description

There are three types of ConstraintRule. The RULE type returns non-null values for all methods. The LHS type provides a (non-null) value for the lhs method, but returns null for everything else. And the RHS type provides a (non-null) value for nativeRhs and foreignRhs but returns null for the lhs and features.

The interpretation of a RULE is that it adds a new rule to the grammar which only applies to the associated span. If the associated span is hard, then the set of rules for that span will override the regular grammar.

The intepretation of a LHS is that it provides a hard constraint that the associated span be treated as the nonterminal for that span, thus filtering the regular grammar.

The interpretation of a RHS is that it provides a hard constraint to filter the regular grammar such that only rules generating the desired translation can be used.


Member Data Documentation