public void increaseValue(String goldValue, String observedValue, int times)
    {
        allGoldLabels.add(goldValue);
        allPredictedLabels.add(observedValue);

        for (int i = 0; i < times; i++) {
            labelSeries.add(observedValue);
        }

        if (!map.containsKey(goldValue)) {
            map.put(goldValue, new TreeMap<String, Integer>());
        }

        if (!map.get(goldValue).containsKey(observedValue)) {
            map.get(goldValue).put(observedValue, 0);
        }

        int currentValue = this.map.get(goldValue).get(observedValue);
        this.map.get(goldValue).put(observedValue, currentValue + times);

        total += times;

        if (goldValue.equals(observedValue)) {
            correct += times;
        }
    }
public void increaseValue ( String goldValue , String observedValue , int times ) { allGoldLabels . add ( goldValue ) ; allPredictedLabels . add ( observedValue ) ; for ( int i = 0 ; i < times ; i ++ ) { labelSeries . add ( observedValue ) ; } if ( ! map . containsKey ( goldValue ) ) { map . put ( goldValue , new TreeMap < String , Integer > ( ) ) ; } if ( ! map . get ( goldValue ) . containsKey ( observedValue ) ) { map . get ( goldValue ) . put ( observedValue , 0 ) ; } int currentValue = this . map . get ( goldValue ) . get ( observedValue ) ; this . map . get ( goldValue ) . put ( observedValue , currentValue + times ) ; total += times ; if ( goldValue . equals ( observedValue ) ) { correct += times ; } }
Increases value of goldValue x observedValue n times

@param goldValue     exp
@param observedValue ac
@param times         n-times