Venue
- Original Script:
- Bug Fix 1: empty translations cause script to crash
- (line:806 - line:807):
- my $len_score = min (0, 1-$ref_length/$tst_ngrams->[1]);
- Fix:
- my $len_score = 0;
- if ($tst_ngrams->[1] > 0)
- $len_score = min (0, 1-$ref_length/$tst_ngrams->[1]);
- }
- Bug Fix 2: empty translations cause script to crash
- (line:846):
- my $len_score = min (0, 1-$ref_length/$tst_ngrams->[1] );
- Fix:
- my $len_score = 0;
- if ($tst_ngrams->[1] > 0)
- $len_score = min (0, 1-$ref_length/$tst_ngrams->[1]);
- }
- Bug Fix 3: sentence ID's of each segment have to be put into double-quotes
- (line:1006):
- ($data =~ m|$name\s*=\s*\"([^\"]*)\"|si) ? ($1) : ();
- Fix:
- if ($data =~ m|$name\s*=\s*\"([^\"]*)|si) {
- ($1);
- } elsif ($data =~ m|$name\s*=\s*(\d+)|si) {
- ($1);
- } else {
- ();
- }