2 # pattern_bayes_merge: Merge pattern probability tables; pass them
7 my ($p, $ch, $co, $pa) = /^(.*?) (\d+) (\d+) (.*)$/;
8 $pa or die "parse error: $_";
14 $p{$_} = $choices{$_} / $counts{$_};
16 for (sort { $counts{$a} <=> $counts{$b} } keys %p) {
17 next if ($counts{$_} < 2);
18 printf("%.3f %d %d %s\n", $p{$_}, $choices{$_}, $counts{$_}, $_);