public class ModelGeneration extends Object implements Serializable
Modifier and Type | Field and Description |
---|---|
double[] |
lambdas2 |
double[] |
lambdas3 |
Map |
suffix_tree |
Map |
suffix_tree_capitalized |
double |
theta |
Map<NGram,Double> |
transition_probs
Map containing N-gram probabilities
|
Map<String,Map<String,Double>> |
word_probs
Map containing
<word,tag> probabilities, that is probability of a certain word given a certain tag at a time t: P(wordt|tagt)) |
Constructor and Description |
---|
ModelGeneration(List<Token> corpus,
String OutputFile) |
Modifier and Type | Method and Description |
---|---|
static boolean |
capitalized(String word)
Check is the token is capitalized
|
void |
init() |
static void |
main(String[] args) |
public Map suffix_tree
public Map suffix_tree_capitalized
public Map<String,Map<String,Double>> word_probs
<word,tag>
probabilities, that is probability of a certain word given a certain tag at a time t: P(wordt|tagt))public double[] lambdas2
public double[] lambdas3
public double theta
Copyright © 2016. All rights reserved.