make probing pt work with ems

This commit is contained in:
Hieu Hoang 2016-08-11 15:46:43 +01:00
parent 5f3239963e
commit a8325a3e8e
2 changed files with 3 additions and 2 deletions

View File

@ -41,6 +41,7 @@ System::System(const Parameter &paramsArg) :
featureFunctions.Create();
LoadWeights();
cerr << "HH1" << endl;
if (params.GetParam("show-weights")) {
cerr << "Showing weights then exit" << endl;
featureFunctions.ShowWeights(weights);

View File

@ -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;
}