mirror of
https://github.com/tesseract-ocr/tesseract.git
synced 2025-01-19 06:53:36 +08:00
Revert "Move LSTMTrainer from libtesseract to libtesseract_training"
This reverts commit a30d433356
.
That commit removed LSTMTrainer also from libtesseract.so which breaks
the ABI compatibility.
Signed-off-by: Stefan Weil <sw@weilnetz.de>
This commit is contained in:
parent
b101d58621
commit
792b39d5c8
@ -510,6 +510,7 @@ install(FILES
|
||||
src/lstm/input.h
|
||||
src/lstm/lstm.h
|
||||
src/lstm/lstmrecognizer.h
|
||||
src/lstm/lstmtrainer.h
|
||||
src/lstm/maxpool.h
|
||||
src/lstm/networkbuilder.h
|
||||
src/lstm/network.h
|
||||
|
@ -28,7 +28,7 @@ pkginclude_HEADERS =
|
||||
|
||||
noinst_HEADERS = convolve.h ctc.h
|
||||
noinst_HEADERS += fullyconnected.h functions.h input.h
|
||||
noinst_HEADERS += lstm.h lstmrecognizer.h maxpool.h
|
||||
noinst_HEADERS += lstm.h lstmrecognizer.h lstmtrainer.h maxpool.h
|
||||
noinst_HEADERS += network.h networkbuilder.h networkio.h networkscratch.h
|
||||
noinst_HEADERS += parallel.h plumbing.h recodebeam.h reconfig.h reversed.h
|
||||
noinst_HEADERS += series.h static_shape.h stridemap.h
|
||||
@ -38,7 +38,7 @@ noinst_LTLIBRARIES = libtesseract_lstm.la
|
||||
|
||||
libtesseract_lstm_la_SOURCES = \
|
||||
convolve.cpp ctc.cpp fullyconnected.cpp functions.cpp input.cpp \
|
||||
lstm.cpp lstmrecognizer.cpp maxpool.cpp \
|
||||
lstm.cpp lstmrecognizer.cpp lstmtrainer.cpp maxpool.cpp \
|
||||
networkbuilder.cpp network.cpp networkio.cpp \
|
||||
parallel.cpp plumbing.cpp recodebeam.cpp reconfig.cpp reversed.cpp \
|
||||
series.cpp stridemap.cpp tfnetwork.cpp weightmatrix.cpp
|
||||
|
@ -31,6 +31,12 @@
|
||||
|
||||
namespace tesseract {
|
||||
|
||||
// Clipping value for certainty inside Tesseract. Reflects the minimum value
|
||||
// of certainty that will be returned by ExtractBestPathAsUnicharIds.
|
||||
// Supposedly on a uniform scale that can be compared across languages and
|
||||
// engines.
|
||||
const float RecodeBeamSearch::kMinCertainty = -20.0f;
|
||||
|
||||
// The beam width at each code position.
|
||||
const int RecodeBeamSearch::kBeamWidths[RecodedCharID::kMaxCodeLen + 1] = {
|
||||
5, 10, 16, 16, 16, 16, 16, 16, 16, 16,
|
||||
|
@ -219,7 +219,7 @@ class RecodeBeamSearch {
|
||||
// of certainty that will be returned by ExtractBestPathAsUnicharIds.
|
||||
// Supposedly on a uniform scale that can be compared across languages and
|
||||
// engines.
|
||||
static constexpr float kMinCertainty = -20.0f;
|
||||
static const float kMinCertainty;
|
||||
// Number of different code lengths for which we have a separate beam.
|
||||
static const int kNumLengths = RecodedCharID::kMaxCodeLen + 1;
|
||||
// Total number of beams: dawg/nodawg * number of NodeContinuation * number
|
||||
|
@ -175,8 +175,6 @@ set(unicharset_training_src
|
||||
lang_model_helpers.h
|
||||
lstmtester.cpp
|
||||
lstmtester.h
|
||||
lstmtrainer.cpp
|
||||
lstmtrainer.h
|
||||
normstrngs.cpp
|
||||
normstrngs.h
|
||||
unicharset_training_utils.cpp
|
||||
|
@ -37,7 +37,6 @@ noinst_HEADERS = \
|
||||
lang_model_helpers.h \
|
||||
ligature_table.h \
|
||||
lstmtester.h \
|
||||
lstmtrainer.h \
|
||||
normstrngs.h \
|
||||
pango_font_info.h \
|
||||
stringrenderer.h \
|
||||
@ -72,7 +71,6 @@ libtesseract_training_la_SOURCES = \
|
||||
lang_model_helpers.cpp \
|
||||
ligature_table.cpp \
|
||||
lstmtester.cpp \
|
||||
lstmtrainer.cpp \
|
||||
normstrngs.cpp \
|
||||
pango_font_info.cpp \
|
||||
stringrenderer.cpp \
|
||||
|
1
sw.cpp
1
sw.cpp
@ -112,7 +112,6 @@ void build(Solution &s)
|
||||
"src/training/icuerrorcode.h",
|
||||
"src/training/lang_model_helpers.*"_rr,
|
||||
"src/training/lstmtester.*"_rr,
|
||||
"src/training/lstmtrainer.*"_rr,
|
||||
"src/training/normstrngs.*"_rr,
|
||||
"src/training/unicharset_training_utils.*"_rr,
|
||||
"src/training/validat.*"_rr;
|
||||
|
Loading…
Reference in New Issue
Block a user