tesseract  v4.0.0-17-g361f3264
Open Source OCR Engine
tesseract::UnicharAmbigs Class Reference

#include <ambigs.h>

Collaboration diagram for tesseract::UnicharAmbigs:

Public Member Functions

 UnicharAmbigs ()=default
 
 ~UnicharAmbigs ()
 
const UnicharAmbigsVectordang_ambigs () const
 
const UnicharAmbigsVectorreplace_ambigs () const
 
void InitUnicharAmbigs (const UNICHARSET &unicharset, bool use_ambigs_for_adaption)
 
void LoadUniversal (const UNICHARSET &encoder_set, UNICHARSET *unicharset)
 
void LoadUnicharAmbigs (const UNICHARSET &encoder_set, TFile *ambigs_file, int debug_level, bool use_ambigs_for_adaption, UNICHARSET *unicharset)
 
const UnicharIdVectorOneToOneDefiniteAmbigs (UNICHAR_ID unichar_id) const
 
const UnicharIdVectorAmbigsForAdaption (UNICHAR_ID unichar_id) const
 
const UnicharIdVectorReverseAmbigsForAdaption (UNICHAR_ID unichar_id) const
 

Private Member Functions

bool ParseAmbiguityLine (int line_num, int version, int debug_level, const UNICHARSET &unicharset, char *buffer, int *test_ambig_part_size, UNICHAR_ID *test_unichar_ids, int *replacement_ambig_part_size, char *replacement_string, int *type)
 
bool InsertIntoTable (UnicharAmbigsVector &table, int test_ambig_part_size, UNICHAR_ID *test_unichar_ids, int replacement_ambig_part_size, const char *replacement_string, int type, AmbigSpec *ambig_spec, UNICHARSET *unicharset)
 

Private Attributes

UnicharAmbigsVector dang_ambigs_
 
UnicharAmbigsVector replace_ambigs_
 
GenericVector< UnicharIdVector * > one_to_one_definite_ambigs_
 
GenericVector< UnicharIdVector * > ambigs_for_adaption_
 
GenericVector< UnicharIdVector * > reverse_ambigs_for_adaption_
 

Constructor & Destructor Documentation

◆ UnicharAmbigs()

tesseract::UnicharAmbigs::UnicharAmbigs ( )
default

◆ ~UnicharAmbigs()

tesseract::UnicharAmbigs::~UnicharAmbigs ( )
inline

Member Function Documentation

◆ AmbigsForAdaption()

const UnicharIdVector* tesseract::UnicharAmbigs::AmbigsForAdaption ( UNICHAR_ID  unichar_id) const
inline

◆ dang_ambigs()

const UnicharAmbigsVector& tesseract::UnicharAmbigs::dang_ambigs ( ) const
inline

◆ InitUnicharAmbigs()

void tesseract::UnicharAmbigs::InitUnicharAmbigs ( const UNICHARSET unicharset,
bool  use_ambigs_for_adaption 
)

◆ InsertIntoTable()

bool tesseract::UnicharAmbigs::InsertIntoTable ( UnicharAmbigsVector table,
int  test_ambig_part_size,
UNICHAR_ID *  test_unichar_ids,
int  replacement_ambig_part_size,
const char *  replacement_string,
int  type,
AmbigSpec ambig_spec,
UNICHARSET unicharset 
)
private

◆ LoadUnicharAmbigs()

void tesseract::UnicharAmbigs::LoadUnicharAmbigs ( const UNICHARSET encoder_set,
TFile ambigs_file,
int  debug_level,
bool  use_ambigs_for_adaption,
UNICHARSET unicharset 
)

◆ LoadUniversal()

void tesseract::UnicharAmbigs::LoadUniversal ( const UNICHARSET encoder_set,
UNICHARSET unicharset 
)

◆ OneToOneDefiniteAmbigs()

const UnicharIdVector* tesseract::UnicharAmbigs::OneToOneDefiniteAmbigs ( UNICHAR_ID  unichar_id) const
inline

◆ ParseAmbiguityLine()

bool tesseract::UnicharAmbigs::ParseAmbiguityLine ( int  line_num,
int  version,
int  debug_level,
const UNICHARSET unicharset,
char *  buffer,
int *  test_ambig_part_size,
UNICHAR_ID *  test_unichar_ids,
int *  replacement_ambig_part_size,
char *  replacement_string,
int *  type 
)
private

◆ replace_ambigs()

const UnicharAmbigsVector& tesseract::UnicharAmbigs::replace_ambigs ( ) const
inline

◆ ReverseAmbigsForAdaption()

const UnicharIdVector* tesseract::UnicharAmbigs::ReverseAmbigsForAdaption ( UNICHAR_ID  unichar_id) const
inline

Member Data Documentation

◆ ambigs_for_adaption_

GenericVector<UnicharIdVector *> tesseract::UnicharAmbigs::ambigs_for_adaption_
private

◆ dang_ambigs_

UnicharAmbigsVector tesseract::UnicharAmbigs::dang_ambigs_
private

◆ one_to_one_definite_ambigs_

GenericVector<UnicharIdVector *> tesseract::UnicharAmbigs::one_to_one_definite_ambigs_
private

◆ replace_ambigs_

UnicharAmbigsVector tesseract::UnicharAmbigs::replace_ambigs_
private

◆ reverse_ambigs_for_adaption_

GenericVector<UnicharIdVector *> tesseract::UnicharAmbigs::reverse_ambigs_for_adaption_
private

The documentation for this class was generated from the following files: