Java Map Print printNERScore(Map scores)

Here you can find the source of printNERScore(Map scores)

Description

print NER Score

License

Apache License

Declaration

public static void printNERScore(Map<String, double[]> scores) 

Method Source Code

//package com.java2s;
//License from project: Apache License 

import java.util.*;

public class Main {
    public static void printNERScore(Map<String, double[]> scores) {
        System.out.printf("%4s\t%6s\t%6s\t%6s\n", "NER", "P", "R", "F1");
        for (Map.Entry<String, double[]> entry : scores.entrySet()) {
            String type = entry.getKey();
            double[] s = entry.getValue();
            System.out.printf("%4s\t%6.2f\t%6.2f\t%6.2f\n", type, s[0], s[1], s[2]);
        }/*  w w  w  .  ja  v  a2 s  . c o  m*/
    }
}

Related

  1. printMap(String mapLabel, Map map)
  2. printMapGeneral(Map map)
  3. printMapObject(Map mapobject)
  4. printMapStrings(Map> map, String mapDescription)
  5. printMapToString(Map map)
  6. printOptions(Map options)
  7. printStringMap(Map hsMap, String sDel)
  8. printTokenStream(CommonTokenStream tokens, Map tokenToName)
  9. printVarTable(HashMap map)