Skip to content

Instantly share code, notes, and snippets.

@abicky
Last active August 29, 2015 14:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save abicky/9cd829380e7f903bb9bf to your computer and use it in GitHub Desktop.
Save abicky/9cd829380e7f903bb9bf to your computer and use it in GitHub Desktop.
Files for CRFsuite
--- export.i.orig 2011-07-05 11:23:42.000000000 +0900
+++ export.i 2015-04-11 19:19:39.000000000 +0900
@@ -8,12 +8,13 @@
%include "std_vector.i"
%include "exception.i"
+%feature("director") Trainer;
+%include "crfsuite_api.hpp"
+
%template(Item) std::vector<CRFSuite::Attribute>;
%template(ItemSequence) std::vector<CRFSuite::Item>;
%template(StringList) std::vector<std::string>;
-%feature("director") Trainer;
-
%exception {
try {
$action
@@ -27,6 +28,3 @@
SWIG_exception(SWIG_RuntimeError,"Unknown exception");
}
}
-
-%include "crfsuite_api.hpp"
-
require 'mkmf'
$LOCAL_LIBS +=' -lcrfsuite'
create_makefile('crfsuite')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment