19 #ifndef TESSERACT_LSTM_CTC_H_ 20 #define TESSERACT_LSTM_CTC_H_ 22 #include "genericvector.h" 24 #include "networkio.h" 25 #include "scrollview.h" 130 #endif // TESSERACT_LSTM_CTC_H_ void Backward(GENERIC_2D_ARRAY< double > *log_probs) const
Definition: ctc.cpp:300
static double ClippedExp(double x)
Definition: ctc.h:96
static bool ComputeCTCTargets(const GenericVector< int > &truth_labels, int null_char, const GENERIC_2D_ARRAY< float > &outputs, NetworkIO *targets)
Definition: ctc.cpp:55
static const float kMinProb_
Definition: ctc.h:103
static const double kMinTotalFinalProb_
Definition: ctc.h:109
bool NeededNull(int index) const
Definition: ctc.cpp:409
int num_classes_
Definition: ctc.h:120
Definition: baseapi.cpp:94
void LabelsToClasses(const GENERIC_2D_ARRAY< double > &probs, NetworkIO *targets) const
Definition: ctc.cpp:355
GENERIC_2D_ARRAY< float > outputs_
Definition: ctc.h:114
int null_char_
Definition: ctc.h:116
float CalculateBiasFraction()
Definition: ctc.cpp:221
static const double kMaxExpArg_
Definition: ctc.h:105
GENERIC_2D_ARRAY< float > * mutable_float_array()
Definition: networkio.h:140
bool ComputeLabelLimits()
Definition: ctc.cpp:94
int num_timesteps_
Definition: ctc.h:118
static void NormalizeProbs(NetworkIO *probs)
Definition: ctc.h:36
GenericVector< int > max_labels_
Definition: ctc.h:125
void ComputeWidthsAndMeans(GenericVector< float > *half_widths, GenericVector< int > *means) const
Definition: ctc.cpp:170
static const double kMinTotalTimeProb_
Definition: ctc.h:107
const GenericVector< int > & labels_
Definition: ctc.h:112
GenericVector< int > min_labels_
Definition: ctc.h:124
void NormalizeSequence(GENERIC_2D_ARRAY< double > *probs) const
Definition: ctc.cpp:329
int num_labels_
Definition: ctc.h:122
Definition: networkio.h:39
void ComputeSimpleTargets(GENERIC_2D_ARRAY< float > *targets) const
Definition: ctc.cpp:126
CTC(const GenericVector< int > &labels, int null_char, const GENERIC_2D_ARRAY< float > &outputs)
Definition: ctc.cpp:84
void Forward(GENERIC_2D_ARRAY< double > *log_probs) const
Definition: ctc.cpp:272