48 start_edge_ = edge_idx;
65 start_edge_ = start_edge_idx;
66 end_edge_ = end_edge_idx;
74 char *char_ptr =
new char[256];
79 strcpy(dawg_str,
"OOD");
81 strcpy(dawg_str,
"NUM");
83 strcpy(dawg_str,
"Main");
85 strcpy(dawg_str,
"User");
87 strcpy(dawg_str,
"Doc");
89 strcpy(dawg_str,
"N/A");
92 sprintf(edge_str,
"%d", static_cast<int>(start_edge_));
94 strcat(edge_str,
"-LP");
97 strcat(edge_str,
"-TP");
99 sprintf(char_ptr,
"%s(%s)%s, Wtd Dawg Cost=%d",
100 dawg_str, edge_str,
IsEOW() ?
"-EOW-" :
"", path_cost_);
112 for (
int i = 0; i < vec.
size(); ++i) {
114 if (child.
unichar_id == INVALID_UNICHAR_ID)
continue;
115 edge_array[edge_cnt++] =
#define IsLeadingPuncEdge(edge_mask)
#define IsTrailingPuncEdge(edge_mask)
static int CreateChildren(CubeRecoContext *cntxt, const Dawg *edges, NODE_REF edge_reg, LangModEdge **lm_edges)
TessLangModEdge(CubeRecoContext *cntxt, const Dawg *edge_array, EDGE_REF edge, int class_id)
PermuterType permuter() const
CharSet * CharacterSet() const
char * Description() const
virtual void unichar_ids_of(NODE_REF node, NodeChildVector *vec, bool word_end) const =0
const char_32 * ClassString(int class_id) const