/** * Retrieves the bigram probability for the two given words * * @param word1 * the first word of the bigram * @param word2 * the second word of the bigram * @return the log probability */ private float getBigramProb(int word1, int word2) { NGramBuffer bigram = getBigramBuffer(word1); NGramProbability bigramProbability = bigram.findNGram(word2); return ngramProbTable[1][bigramProbability.getProbabilityID()]; }
NGramBuffer bigram = getBigramBuffer(i);
+ loadedBigramBuffers.length); int numBigrams = in.readInt(); NGramBuffer bigram = getBigramBuffer(i);
NGramBuffer bigram = getBigramBuffer(i); System.out.println("Processed " + i + " of " + loadedBigramBuffers.length); NGramBuffer bigram = getBigramBuffer(i);
/** * Retrieves the bigram probability for the two given words * * @param word1 * the first word of the bigram * @param word2 * the second word of the bigram * @return the log probability */ private float getBigramProb(int word1, int word2) { NGramBuffer bigram = getBigramBuffer(word1); NGramProbability bigramProbability = bigram.findNGram(word2); return ngramProbTable[1][bigramProbability.getProbabilityID()]; }
NGramBuffer bigram = getBigramBuffer(i);
+ loadedBigramBuffers.length); int numBigrams = in.readInt(); NGramBuffer bigram = getBigramBuffer(i);
NGramBuffer bigram = getBigramBuffer(i); System.out.println("Processed " + i + " of " + loadedBigramBuffers.length); NGramBuffer bigram = getBigramBuffer(i);