You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
34 lines
1.2 KiB
34 lines
1.2 KiB
7 years ago
|
%module swig_decoders
|
||
8 years ago
|
%{
|
||
7 years ago
|
#include "scorer.h"
|
||
7 years ago
|
#include "ctc_greedy_decoder.h"
|
||
|
#include "ctc_beam_search_decoder.h"
|
||
7 years ago
|
#include "decoder_utils.h"
|
||
8 years ago
|
%}
|
||
|
|
||
|
%include "std_vector.i"
|
||
|
%include "std_pair.i"
|
||
|
%include "std_string.i"
|
||
7 years ago
|
%import "decoder_utils.h"
|
||
8 years ago
|
|
||
7 years ago
|
namespace std {
|
||
8 years ago
|
%template(DoubleVector) std::vector<double>;
|
||
|
%template(IntVector) std::vector<int>;
|
||
|
%template(StringVector) std::vector<std::string>;
|
||
|
%template(VectorOfStructVector) std::vector<std::vector<double> >;
|
||
|
%template(FloatVector) std::vector<float>;
|
||
|
%template(Pair) std::pair<float, std::string>;
|
||
|
%template(PairFloatStringVector) std::vector<std::pair<float, std::string> >;
|
||
|
%template(PairDoubleStringVector) std::vector<std::pair<double, std::string> >;
|
||
7 years ago
|
%template(PairDoubleStringVector2) std::vector<std::vector<std::pair<double, std::string> > >;
|
||
|
%template(DoubleVector3) std::vector<std::vector<std::vector<double> > >;
|
||
8 years ago
|
}
|
||
|
|
||
7 years ago
|
%template(IntDoublePairCompSecondRev) pair_comp_second_rev<int, double>;
|
||
|
%template(StringDoublePairCompSecondRev) pair_comp_second_rev<std::string, double>;
|
||
|
%template(DoubleStringPairCompFirstRev) pair_comp_first_rev<double, std::string>;
|
||
|
|
||
7 years ago
|
%include "scorer.h"
|
||
7 years ago
|
%include "ctc_greedy_decoder.h"
|
||
|
%include "ctc_beam_search_decoder.h"
|