/** * Returns the location (or offset) into the file where trigrams start. * * @return the location of the trigrams */ public long getTrigramOffset() { return getNGramOffset(3); }
/** * Returns the location (or offset) into the file where bigrams start. * * @return the location of the bigrams */ public long getBigramOffset() { return getNGramOffset(2); }
position = (loader.getNGramOffset(orderBuffer) + (firstCurrentNGramEntry position = loader.getNGramOffset(orderBuffer) + (long) firstCurrentNGramEntry * (long) ((loader.getMaxDepth() == orderBuffer) ? BYTES_PER_NMAXGRAM
/** * Returns the location (or offset) into the file where bigrams start. * * @return the location of the bigrams */ public long getBigramOffset() { return getNGramOffset(2); }
/** * Returns the location (or offset) into the file where trigrams start. * * @return the location of the trigrams */ public long getTrigramOffset() { return getNGramOffset(3); }
position = (loader.getNGramOffset(orderBuffer) + (firstCurrentNGramEntry position = loader.getNGramOffset(orderBuffer) + (long) firstCurrentNGramEntry * (long) ((loader.getMaxDepth() == orderBuffer) ? BYTES_PER_NMAXGRAM