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.
25 lines
716 B
25 lines
716 B
%module swig_decoders
|
|
%{
|
|
#include "scorer.h"
|
|
#include "ctc_decoders.h"
|
|
%}
|
|
|
|
%include "std_vector.i"
|
|
%include "std_pair.i"
|
|
%include "std_string.i"
|
|
|
|
namespace std{
|
|
%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> >;
|
|
}
|
|
|
|
%import decoder_utils.h
|
|
%include "scorer.h"
|
|
%include "ctc_decoders.h"
|