Last active
August 29, 2015 14:18
-
-
Save abicky/9cd829380e7f903bb9bf to your computer and use it in GitHub Desktop.
Files for CRFsuite
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- 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" | |
- |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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