9 #ifndef StochHMM_Lexical_h
10 #define StochHMM_Lexical_h
95 inline void incrementCounts(
size_t word_index,
size_t char_index) {
if (
counts != NULL) (*counts)[word_index][char_index]++; }
98 inline void incrementCountsDouble(
size_t word_index,
size_t char_index,
double val) {
if (
counts != NULL) (*counts)[word_index][char_index]+= val; }
120 std::vector<std::vector<double> >*
prob;
121 std::vector<std::vector<double> >*
counts;
142 void decompose(
size_t row,
size_t column, std::vector<uint8_t>& letters);
143 void decompose(
size_t index, std::vector<uint8_t>& letters);
147 void expand_ambiguous(std::vector<uint8_t>& letters, std::vector<double>& expanded);
148 std::vector<std::vector<uint8_t> >*
expand_ambiguous(std::vector<std::vector<uint8_t> >* words,
size_t letter);