Skip to content

Commit 78a957b

Browse files
committed
Remove spaces a line endings
Signed-off-by: Stefan Weil <[email protected]>
1 parent 12ca251 commit 78a957b

File tree

4 files changed

+7
-8
lines changed

4 files changed

+7
-8
lines changed

src/ccmain/ltrresultiterator.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -415,9 +415,9 @@ const char* ChoiceIterator::GetUTF8Text() const {
415415
}
416416

417417
// Returns the confidence of the current choice depending on the used language
418-
// data. If only LSTM traineddata is used the value range is 0.0f - 1.0f. All
418+
// data. If only LSTM traineddata is used the value range is 0.0f - 1.0f. All
419419
// choices for one symbol should roughly add up to 1.0f.
420-
// If only traineddata of the legacy engine is used, the number should be
420+
// If only traineddata of the legacy engine is used, the number should be
421421
// interpreted as a percent probability. (0.0f-100.0f) In this case probabilities
422422
// won't add up to 100. Each one stands on its own.
423423
float ChoiceIterator::Confidence() const {

src/lstm/lstmtrainer.cpp

+1-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
// File: lstmtrainer.cpp
33
// Description: Top-level line trainer class for LSTM-based networks.
44
// Author: Ray Smith
5-
// Created: Fir May 03 09:14:06 PST 2013
65
//
76
// (C) Copyright 2013, Google Inc.
87
// Licensed under the Apache License, Version 2.0 (the "License");
@@ -879,7 +878,7 @@ Trainability LSTMTrainer::PrepareForBackward(const ImageData* trainingdata,
879878
targets->SubtractAllFromFloat(*fwd_outputs);
880879
if (debug_interval_ != 0) {
881880
if (truth_text != ocr_text) {
882-
tprintf("Iteration %d: BEST OCR TEXT : %s\n",
881+
tprintf("Iteration %d: BEST OCR TEXT : %s\n",
883882
training_iteration(), ocr_text.string());
884883
}
885884
}

src/training/tesstrain_utils.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ def parse_flags(argv=None):
226226
ctx.output_dir = mkdtemp(prefix=f"trained-{ctx.lang_code}-{ctx.timestamp}")
227227
log.info(f"Output directory set to: {ctx.output_dir}")
228228

229-
# Location where intermediate files will be created.
229+
# Location where intermediate files will be created.
230230
if not ctx.tmp_dir:
231231
ctx.training_dir = mkdtemp(prefix=f"{ctx.lang_code}-{ctx.timestamp}")
232232
else:

src/training/validate_myanmar.cpp

+3-3
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ bool ValidateMyanmar::ConsumeOptionalSignsIfPresent() {
132132
// Returns true if the unicode is a Myanmar "letter" including consonants
133133
// and independent vowels. Although table 16-3 distinguishes between some
134134
// base consonants and vowels, the extensions make no such distinction, so we
135-
// put them all into a single bucket.
135+
// put them all into a single bucket.
136136
// Update MYANMAR LETTER based on following:
137137
// https://unicode.org/charts/PDF/U1000.pdf - Myanmar
138138
// http://unicode.org/charts/PDF/UAA60.pdf - Myanmar Extended-A
@@ -144,14 +144,14 @@ bool ValidateMyanmar::IsMyanmarLetter(char32 ch) {
144144
ch == 0x1061 || ch == 0x1065 || ch == 0x1066 ||
145145
(0x106e <= ch && ch <= 0x1070) || (0x1075 <= ch && ch <= 0x1081) ||
146146
ch == 0x108e || (0xa9e0 <= ch && ch <= 0xa9e4) ||
147-
(0xa9e7 <= ch && ch <= 0xa9ef) || (0xa9fa <= ch && ch <= 0xa9fe) ||
147+
(0xa9e7 <= ch && ch <= 0xa9ef) || (0xa9fa <= ch && ch <= 0xa9fe) ||
148148
(0xaa60 <= ch && ch <= 0xaa6f) || (0xaa71 <= ch && ch <= 0xaa73) ||
149149
ch == 0xaa7a || ch == 0xaa7e || ch == 0xaa7f;
150150
}
151151

152152
// Returns true if ch is a Myanmar digit or other symbol that does not take
153153
// part in being a syllable eg. punctuation marks.
154-
// MYANMAR DIGIT, MYANMAR SYMBOL, MYANMAR LOGOGRAM
154+
// MYANMAR DIGIT, MYANMAR SYMBOL, MYANMAR LOGOGRAM
155155
// REDUPLICATION MARKS
156156
/* static */
157157
bool ValidateMyanmar::IsMyanmarOther(char32 ch) {

0 commit comments

Comments
 (0)