|
@@ -21,7 +21,7 @@ public class FeatureTransformV1 {
|
|
|
if (null != stat) {
|
|
if (null != stat) {
|
|
|
for (Map.Entry<String, String> entry : stat.entrySet()) {
|
|
for (Map.Entry<String, String> entry : stat.entrySet()) {
|
|
|
String name = entry.getKey();
|
|
String name = entry.getKey();
|
|
|
- String cleanName = name.replaceAll("(\\s+|\\t|:)", "");
|
|
|
|
|
|
|
+ String cleanName = name.replaceAll("(\\s+|\\t|:|\\.)", "");
|
|
|
if (!cleanName.isEmpty() && !cleanName.equals("unknown")) {
|
|
if (!cleanName.isEmpty() && !cleanName.equals("unknown")) {
|
|
|
double cnt = Double.parseDouble(entry.getValue());
|
|
double cnt = Double.parseDouble(entry.getValue());
|
|
|
double value = FeatureUtils.wilsonScore(cnt, total);
|
|
double value = FeatureUtils.wilsonScore(cnt, total);
|