%module swig_decoders %{ #include "scorer.h" #include "ctc_decoders.h" #include "decoder_utils.h" %} %include "std_vector.i" %include "std_pair.i" %include "std_string.i" %import "decoder_utils.h" namespace std { %template(DoubleVector) std::vector; %template(IntVector) std::vector; %template(StringVector) std::vector; %template(VectorOfStructVector) std::vector >; %template(FloatVector) std::vector; %template(Pair) std::pair; %template(PairFloatStringVector) std::vector >; %template(PairDoubleStringVector) std::vector >; %template(PairDoubleStringVector2) std::vector > >; %template(DoubleVector3) std::vector > >; } %template(IntDoublePairCompSecondRev) pair_comp_second_rev; %template(StringDoublePairCompSecondRev) pair_comp_second_rev; %template(DoubleStringPairCompFirstRev) pair_comp_first_rev; %include "scorer.h" %include "ctc_decoders.h"