ctc_decoders.i 673 字节
Newer Older
1
%module swig_ctc_decoders
Y
Yibing Liu 已提交
2
%{
3
#include "ctc_decoders.h"
Y
Yibing Liu 已提交
4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
%}

%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 scorer.h
22
%include "ctc_decoders.h"