Tesseract 3.01
tesseract::LangModel Class Reference

#include <lang_model.h>

Inheritance diagram for tesseract::LangModel:
tesseract::TessLangModel tesseract::WordListLangModel

List of all members.

Public Member Functions

 LangModel ()
virtual ~LangModel ()
virtual LangModEdgeRoot ()=0
virtual LangModEdge ** GetEdges (CharAltList *alt_list, LangModEdge *parent_edge, int *edge_cnt)=0
virtual bool IsValidSequence (const char_32 *str, bool eow_flag, LangModEdge **edge_array=NULL)=0
virtual bool IsLeadingPunc (char_32 ch)=0
virtual bool IsTrailingPunc (char_32 ch)=0
virtual bool IsDigit (char_32 ch)=0
bool OOD ()
bool Numeric ()
bool WordList ()
bool Punc ()
void SetOOD (bool ood)
void SetNumeric (bool numeric)
void SetWordList (bool word_list)
void SetPunc (bool punc_enabled)

Protected Attributes

bool ood_enabled_
bool numeric_enabled_
bool word_list_enabled_
bool punc_enabled_

Constructor & Destructor Documentation

tesseract::LangModel::LangModel ( ) [inline]
virtual tesseract::LangModel::~LangModel ( ) [inline, virtual]

Member Function Documentation

virtual LangModEdge** tesseract::LangModel::GetEdges ( CharAltList alt_list,
LangModEdge parent_edge,
int *  edge_cnt 
) [pure virtual]
virtual bool tesseract::LangModel::IsDigit ( char_32  ch) [pure virtual]
virtual bool tesseract::LangModel::IsLeadingPunc ( char_32  ch) [pure virtual]
virtual bool tesseract::LangModel::IsTrailingPunc ( char_32  ch) [pure virtual]
virtual bool tesseract::LangModel::IsValidSequence ( const char_32 str,
bool  eow_flag,
LangModEdge **  edge_array = NULL 
) [pure virtual]
bool tesseract::LangModel::Numeric ( ) [inline]
bool tesseract::LangModel::OOD ( ) [inline]
bool tesseract::LangModel::Punc ( ) [inline]
virtual LangModEdge* tesseract::LangModel::Root ( ) [pure virtual]
void tesseract::LangModel::SetNumeric ( bool  numeric) [inline]
void tesseract::LangModel::SetOOD ( bool  ood) [inline]
void tesseract::LangModel::SetPunc ( bool  punc_enabled) [inline]
void tesseract::LangModel::SetWordList ( bool  word_list) [inline]
bool tesseract::LangModel::WordList ( ) [inline]

Member Data Documentation


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines