mirror of
https://github.com/moses-smt/mosesdecoder.git
synced 2024-08-17 07:20:48 +03:00
minor ems fixes
This commit is contained in:
parent
3f32e48f97
commit
4ee4e07c1b
@ -436,7 +436,8 @@ function ngram_summary() {
|
||||
$score_line = "";
|
||||
for($i=0;$i<count($each_score);$i++) {
|
||||
if (preg_match('/([\d\(\)\.\s]+) (BLEU[\-c]*)/',$each_score[$i],$match) ||
|
||||
preg_match('/([\d\(\)\.\s]+) (IBM[\-c]*)/',$each_score[$i],$match)) {
|
||||
preg_match('/([\d\(\)\.\s]+) (IBM[\-c]*)/',$each_score[$i],$match) ||
|
||||
preg_match('/([\d\(\)\.\s]+) (METEOR[\-c]*)/',$each_score[$i],$match)) {
|
||||
$header .= "<td>$match[2]</td>";
|
||||
$score_line .= "<td>$match[1]</td>";
|
||||
}
|
||||
|
@ -683,7 +683,8 @@ function ngram_summary_diff() {
|
||||
$each_score = explode(" ; ",$experiment[$idx?$id2:$id]->result[$set]);
|
||||
for($i=0;$i<count($each_score);$i++) {
|
||||
if (preg_match('/([\d\(\)\.\s]+) (BLEU[\-c]*)/',$each_score[$i],$match) ||
|
||||
preg_match('/([\d\(\)\.\s]+) (IBM[\-c]*)/',$each_score[$i],$match)) {
|
||||
preg_match('/([\d\(\)\.\s]+) (IBM[\-c]*)/',$each_score[$i],$match) ||
|
||||
preg_match('/([\d\(\)\.\s]+) (METEOR[\-c]*)/',$each_score[$i],$match)) {
|
||||
$score[$match[2]][$idx] = $match[1];
|
||||
}
|
||||
}
|
||||
|
@ -22,7 +22,8 @@ function head($title) {
|
||||
<body><h2>'.$title."</h2>\n";
|
||||
}
|
||||
|
||||
if (array_key_exists("setup",$_POST) || array_key_exists("setup",$_GET)) {
|
||||
if (array_key_exists("setStepStatus",$_GET)) { set_step_status($_GET["setStepStatus"]); }
|
||||
else if (array_key_exists("setup",$_POST) || array_key_exists("setup",$_GET)) {
|
||||
load_experiment_info();
|
||||
load_comment();
|
||||
|
||||
|
@ -295,7 +295,8 @@ function output_score($id,$info) {
|
||||
$each_score = explode(" ; ",$score);
|
||||
for($i=0;$i<count($each_score);$i++) {
|
||||
if (preg_match('/([\d\(\)\.\s]+) (BLEU[\-c]*)/',$each_score[$i],$match) ||
|
||||
preg_match('/([\d\(\)\.\s]+) (IBM[\-c]*)/',$each_score[$i],$match)) {
|
||||
preg_match('/([\d\(\)\.\s]+) (IBM[\-c]*)/',$each_score[$i],$match) ||
|
||||
preg_match('/([\d\(\)\.\s]+) (METEOR[\-c]*)/',$each_score[$i],$match)) {
|
||||
if ($i>0) { print "<BR>"; }
|
||||
$opened_a_tag = 0;
|
||||
if ($set != "avg") {
|
||||
|
Loading…
Reference in New Issue
Block a user