diff options
Diffstat (limited to 'decoder/cfg.h')
-rwxr-xr-x | decoder/cfg.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/decoder/cfg.h b/decoder/cfg.h index 90a5dd5a..5a418234 100755 --- a/decoder/cfg.h +++ b/decoder/cfg.h @@ -92,6 +92,8 @@ struct CFG { rhs[0]=binrhs.first; rhs[1]=binrhs.second; } + Rule(int lhs,RHS const& rhs) : lhs(lhs),rhs(rhs),p(1) { + } int lhs; // index into nts RHS rhs; @@ -302,7 +304,9 @@ struct CFG { ReorderNTs(o); } + void BinarizeL2R(bool bin_unary=false,bool name_nts=false); void Binarize(CFGBinarize const& binarize_options); // see cfg_binarize.h for docs + void BinarizeSplit(CFGBinarize const& binarize_options); // there may be many options affecting split. typedef std::vector<NT> NTs; NTs nts; |