Sha256: 7e557b277a0f7afe1f51b8e36b888db4c5c8905be4528dc7e116cece4a8bbe8d
Contents?: true
Size: 765 Bytes
Versions: 21
Compression:
Stored size: 765 Bytes
Contents
%module(directors="1") crfsuite %{ #include "crfsuite_api.hpp" %} %include "std_string.i" %include "std_vector.i" %include "exception.i" %template(Item) std::vector<CRFSuite::Attribute>; %template(ItemSequence) std::vector<CRFSuite::Item>; %template(StringList) std::vector<std::string>; %feature("director") Trainer; %exception { try { $action } catch(const std::invalid_argument& e) { SWIG_exception(SWIG_IOError, e.what()); } catch(const std::runtime_error& e) { SWIG_exception(SWIG_RuntimeError, e.what()); } catch (const std::exception& e) { SWIG_exception(SWIG_RuntimeError, e.what()); } catch(...) { SWIG_exception(SWIG_RuntimeError,"Unknown exception"); } } %include "crfsuite_api.hpp"
Version data entries
21 entries across 21 versions & 2 rubygems