mirror of
https://github.com/moses-smt/mosesdecoder.git
synced 2024-12-27 22:14:57 +03:00
make probing pt work with ems
This commit is contained in:
parent
5f3239963e
commit
a8325a3e8e
@ -41,6 +41,7 @@ System::System(const Parameter ¶msArg) :
|
||||
featureFunctions.Create();
|
||||
LoadWeights();
|
||||
|
||||
cerr << "HH1" << endl;
|
||||
if (params.GetParam("show-weights")) {
|
||||
cerr << "Showing weights then exit" << endl;
|
||||
featureFunctions.ShowWeights(weights);
|
||||
|
@ -22,7 +22,7 @@ while(my $line = <FILTERED>) {
|
||||
$feature_section = ($1 eq "feature");
|
||||
}
|
||||
next unless $feature_section;
|
||||
if ($line =~ /PhraseDictionary/ || $line =~ /RuleTable/) {
|
||||
if ($line =~ /PhraseDictionary/ || $line =~ /RuleTable/ || $line =~ /ProbingPT/ ) {
|
||||
print STDERR "pt:$line \n";
|
||||
push(@arr, $line);
|
||||
}
|
||||
@ -41,7 +41,7 @@ while(my $line = <STDIN>) {
|
||||
if ($line =~ /^\[(.+)\]/) {
|
||||
$feature_section = ($1 eq "feature");
|
||||
}
|
||||
if ($feature_section && ($line =~ /PhraseDictionary/ || $line =~ /RuleTable/)) {
|
||||
if ($feature_section && ($line =~ /PhraseDictionary/ || $line =~ /RuleTable/ || $line =~ /ProbingPT/ )) {
|
||||
print $arr[$ind]."\n";
|
||||
++$ind;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user