Domain Label (Count)
$acfile = file_get_contents('ac_domain.txt');
$ac = explode("\n", $acfile);
$ac = array_map('strtolower', $ac);
$labelfile = file_get_contents('allDomain.txt');
$labels = explode("\n", $labelfile);
$labels = array_map('strtolower', $labels);
foreach ($labels as $line) {
$line = explode("|", $line);
$label = $line[0];
$count = $line[1];
if (in_array($label, $ac)) {
echo "$label ($count)
";
}
else {
echo "$label ($count)
";
}
}
?>
Style Label (Count)
$acfile = file_get_contents('ac_style.txt');
$ac = explode("\n", $acfile);
$ac = array_map('strtolower', $ac);
$labelfile = file_get_contents('allStyle.txt');
$labels = explode("\n", $labelfile);
$labels = array_map('strtolower', $labels);
foreach ($labels as $line) {
$line = explode("|", $line);
$label = $line[0];
$count = $line[1];
if (in_array($label, $ac)) {
echo "$label ($count)
";
}
else {
echo "$label ($count)
";
}
}
?>
Structural Label (Count)
$acfile = file_get_contents('ac_structural.txt');
$ac = explode("\n", $acfile);
$ac = array_map('strtolower', $ac);
$labelfile = file_get_contents('allStructural.txt');
$labels = explode("\n", $labelfile);
$labels = array_map('strtolower', $labels);
foreach ($labels as $line) {
$line = explode("|", $line);
$label = $line[0];
$count = $line[1];
if (in_array($label, $ac)) {
echo "$label ($count)
";
}
else {
echo "$label ($count)
";
}
}
?>