testOOV("ar", vocab, false, false, arExpectedOOVRates);
}
@Test
public void testEnglishOOVs() {
VocabularyWritable vocab = new VocabularyWritable();
vocab.addOrGet("r.d.");
vocab.addOrGet("craig");
vocab.addOrGet("dictionari");
vocab.addOrGet("polynesian");
vocab.addOrGet("mytholog");
vocab.addOrGet("greenwood");
vocab.addOrGet("press");
vocab.addOrGet("new");
vocab.addOrGet("york");
vocab.addOrGet("1989");
vocab.addOrGet("24");
vocab.addOrGet("26");
vocab.addOrGet("english");
vocab.addOrGet("tree");
vocab.addOrGet("einbaum");
float[] enStopStemExpectedOOVRates = {1f, 18/19f, 4/7.0f, 0f};
float[] enStopExpectedOOVRates = {1f, 18/19f, 4/7.0f, 2/12f};
float[] enStemExpectedOOVRates = {1f, 36/37f, 15/18.0f, 7/19f};
float[] enExpectedOOVRates = {1f, 36/37f, 15/18.0f, 9/19f};