code: protected final Dictionary createNgramDictionary(
        final ObjectStream<POSSample> aDictSamples, final int aNgramCutoff) {
      Dictionary ngramDict = null;
      if (aNgramCutoff != Flags.DEFAULT_DICT_CUTOFF) {
        System.err.print("Building ngram dictionary ... ");
        try {
          ngramDict = POSTaggerME
              .buildNGramDictionary(aDictSamples, aNgramCutoff);
          this.dictSamples.reset();
        } catch (final IOException e) {
          throw new TerminateToolException(-1,
              "IO error while building NGram Dictionary: " + e.getMessage(), e);
        }
        System.err.println("done");
      }
      return ngramDict;
    }
docs: Create ngram dictionary from training data.
  
  @param aDictSamples
  the training data
  @param aNgramCutoff
  the cutoff
  @return ngram dictionary