public class LangModel extends Object
Modifier and Type | Field and Description |
---|---|
static LangModel |
EMPTY_MODEL |
Constructor and Description |
---|
LangModel(long totalTokens) |
Modifier and Type | Method and Description |
---|---|
void |
add(String t,
long tf) |
boolean |
contains(String token) |
long |
getCount(String token) |
Map<String,Long> |
getCounts() |
double |
getProbability(String token) |
Set<String> |
getTokens() |
double |
getUnseenProbability() |
public static LangModel EMPTY_MODEL
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.