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