Skip to content

Commit

Permalink
small change to reading config
Browse files Browse the repository at this point in the history
  • Loading branch information
Annette Rios committed Jul 26, 2017
1 parent 6858492 commit a3c7a14
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions MT_systems/translate.pm
Original file line number Diff line number Diff line change
Expand Up @@ -695,7 +695,7 @@ if($direction eq 'esqu' && $startTrans < $mapInputFormats{'svm'}) #11)


my %nounLex = (); my %verbLex = ();
if($nounlex ne ''){
if($nounlex ne '' and $nounlex ne 'NounLex'){
open (NOUNS, "<:encoding(UTF-8)", $nounlex) or die "Can't open $nounlex : $!";
print STDERR "reading semantic noun lexicon from $nounlex...\n";
while(<NOUNS>){
Expand All @@ -713,7 +713,7 @@ if($direction eq 'esqu' && $startTrans < $mapInputFormats{'svm'}) #11)
} or die "No NounLex in $path/storage found! specify --nounlex=path to read in the Spanish noun lexicon!";
%nounLex = %{ Storable::retrieve("$path/storage/NounLex") };
}
if($verblex ne ''){
if($verblex ne '' and $verblex =~ /\.xml$/){
open VERBS, "< $verblex" or die "Can't open $verblex : $!";
print STDERR "reading verb frame lexicon form $verblex...\n";
my $verbdom = XML::LibXML->load_xml( IO => *VERBS );
Expand Down

0 comments on commit a3c7a14

Please sign in to comment.