DeepSpeech/native_client/ctcdecode/output.h
Reuben Morais 440893c58d Simplify ctcdecode API signatures to avoid nested STL structures
Flatten structure to avoid nested STL structures which are awkward to
wrap with SWIG and slower at runtime.
2018-11-03 07:48:02 -03:00

16 lines
341 B
C++

#ifndef OUTPUT_H_
#define OUTPUT_H_
#include <vector>
/* Struct for the beam search output, containing the tokens based on the vocabulary indices, and the timesteps
* for each token in the beam search output
*/
struct Output {
double probability;
std::vector<int> tokens;
std::vector<int> timesteps;
};
#endif // OUTPUT_H_