Skip to content

Commit

Permalink
Fix typo in comments and variable name
Browse files Browse the repository at this point in the history
Signed-off-by: Stefan Weil <[email protected]>
  • Loading branch information
stweil committed Aug 14, 2018
1 parent 95ed924 commit 6412374
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/ccmain/pagesegmain.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ int Tesseract::SegmentPage(const STRING* input_file, BLOCK_LIST* blocks,
* of non-uniform linespacing.
*
* If diacritic_blobs is non-null, then diacritics/noise blobs, that would
* confuse layout anaylsis by causing textline overlap, are placed there,
* confuse layout analysis by causing textline overlap, are placed there,
* with the expectation that they will be reassigned to words later and
* noise/diacriticness determined via classification.
*
Expand Down
6 changes: 3 additions & 3 deletions src/classify/mastertrainer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ MasterTrainer::MasterTrainer(NormalizationMode norm_mode,
: norm_mode_(norm_mode), samples_(fontinfo_table_),
junk_samples_(fontinfo_table_), verify_samples_(fontinfo_table_),
charsetsize_(0),
enable_shape_anaylsis_(shape_analysis),
enable_shape_analysis_(shape_analysis),
enable_replication_(replicate_samples),
fragments_(nullptr), prev_unichar_id_(-1), debug_level_(debug_level) {
}
Expand Down Expand Up @@ -205,13 +205,13 @@ void MasterTrainer::LoadPageImages(const char* filename) {

// Cleans up the samples after initial load from the tr files, and prior to
// saving the MasterTrainer:
// Remaps fragmented chars if running shape anaylsis.
// Remaps fragmented chars if running shape analysis.
// Sets up the samples appropriately for class/fontwise access.
// Deletes outlier samples.
void MasterTrainer::PostLoadCleanup() {
if (debug_level_ > 0)
tprintf("PostLoadCleanup...\n");
if (enable_shape_anaylsis_)
if (enable_shape_analysis_)
ReplaceFragmentedSamples();
SampleIterator sample_it;
sample_it.Init(nullptr, nullptr, true, &verify_samples_);
Expand Down
4 changes: 2 additions & 2 deletions src/classify/mastertrainer.h
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ class MasterTrainer {

// Cleans up the samples after initial load from the tr files, and prior to
// saving the MasterTrainer:
// Remaps fragmented chars if running shape anaylsis.
// Remaps fragmented chars if running shape analysis.
// Sets up the samples appropriately for class/fontwise access.
// Deletes outlier samples.
void PostLoadCleanup();
Expand Down Expand Up @@ -284,7 +284,7 @@ class MasterTrainer {
int charsetsize_;
// Flag to indicate that we are running shape analysis and need fragments
// fixing.
bool enable_shape_anaylsis_;
bool enable_shape_analysis_;
// Flag to indicate that sample replication is required.
bool enable_replication_;
// Array of classids of fragments that replace the correctly segmented chars.
Expand Down
2 changes: 1 addition & 1 deletion src/textord/colfind.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,7 @@ void ColumnFinder::CorrectOrientation(TO_BLOCK* block,
// can be an integer factor reduction of the grey_pix. It represents the
// thresholds that were used to create the binary_pix from the grey_pix.
// If diacritic_blobs is non-null, then diacritics/noise blobs, that would
// confuse layout anaylsis by causing textline overlap, are placed there,
// confuse layout analysis by causing textline overlap, are placed there,
// with the expectation that they will be reassigned to words later and
// noise/diacriticness determined via classification.
// Returns -1 if the user hits the 'd' key in the blocks window while running
Expand Down

0 comments on commit 6412374

Please sign in to comment.