Interface LmReaderCallback<V>

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void call​(int[] ngram, int startPos, int endPos, V value, java.lang.String words)
      Called for each n-gram
      void cleanup()
      Called once all reading is done.
    • Method Detail

      • call

        void call​(int[] ngram,
                  int startPos,
                  int endPos,
                  V value,
                  java.lang.String words)
        Called for each n-gram
        Parameters:
        ngram - The integer representation of the words as given by the provided WordIndexer
        value - The value of the n-gram
        words - The string representation of the n-gram (space separated)
      • cleanup

        void cleanup()
        Called once all reading is done.