src/main/java/eu/digitisation/ngram/NgramModel.java
protected void addEntry(String s) {
        if (occur.containsKey(s)) {
            occur.get(s).increment();
        } else {
            occur.put(s, new Int(1));
        }
    }
/**
     * Increments number of occurrences of the given string.
     *
     * @param s a string
     */
Increments number of occurrences of the given string.
@param s a string
Increments number of occurrences of the given string . @param s a string
protected void addEntry(String s) {
        if (occur.containsKey(s)) {
            occur.get(s).increment();
        } else {
            occur.put(s, new Int(1));
        }
    }
protected void addEntry ( String s ) { if ( occur . containsKey ( s ) ) { occur . get ( s ) . increment ( ) ; } else { occur . put ( s , new Int ( 1 ) ) ; } }
Increments number of occurrences of the given string.
Increments number of occurrences of the given string .