filter new ini file

This commit is contained in:
Hieu Hoang 2013-02-14 19:02:00 +00:00
parent 221dba2820
commit f32d337fc0
2 changed files with 6 additions and 5 deletions

View File

@ -6,7 +6,7 @@
class RO : public FF
{
static int s_index;
std::string type;
std::string type, fileTypeSuffix;
float GetWeight() const
{ return 0.3; }
@ -18,7 +18,7 @@ class RO : public FF
<< " type=" << type
<< " input-factor=" << OutputFactors(inFactors)
<< " output-factor=" << OutputFactors(outFactors)
<< " path=" << path
<< " path=" << path << "." << fileTypeSuffix << ".gz"
<< std::endl;
}
public:
@ -30,7 +30,8 @@ public:
name = "LexicalReordering";
numFeatures = 6;
path = toks[0];
type = "msd-bidirectional-fe";
type = "wbe-msd-bidirectional-fe-allff"; // TODO what is this?
fileTypeSuffix = "wbe-msd-bidirectional-fe";
inFactors.push_back(0);
outFactors.push_back(0);

View File

@ -181,8 +181,8 @@ while(<INI>) {
} # for (my $i = 1; $i < scalar(@toks); ++$i) {
push @TABLE,$file;
push @TABLE, $file;
$file =~ s/^.*\/+([^\/]+)/$1/g;
my $new_name = "$dir/$file";
$new_name =~ s/\.gz//;