opener-opinion-detector-basic 2.0.0 → 2.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (148) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +2 -0
  3. data/ext/hack/Rakefile +0 -2
  4. data/lib/opener/opinion_detector_basic/version.rb +1 -1
  5. data/opener-opinion-detector-basic.gemspec +0 -1
  6. data/task/compile.rake +1 -1
  7. data/task/requirements.rake +0 -1
  8. metadata +2 -142
  9. data/core/vendor/src/crfsuite/AUTHORS +0 -1
  10. data/core/vendor/src/crfsuite/COPYING +0 -27
  11. data/core/vendor/src/crfsuite/ChangeLog +0 -103
  12. data/core/vendor/src/crfsuite/INSTALL +0 -236
  13. data/core/vendor/src/crfsuite/Makefile.am +0 -19
  14. data/core/vendor/src/crfsuite/Makefile.in +0 -783
  15. data/core/vendor/src/crfsuite/README +0 -183
  16. data/core/vendor/src/crfsuite/aclocal.m4 +0 -9018
  17. data/core/vendor/src/crfsuite/autogen.sh +0 -38
  18. data/core/vendor/src/crfsuite/compile +0 -143
  19. data/core/vendor/src/crfsuite/config.guess +0 -1502
  20. data/core/vendor/src/crfsuite/config.h.in +0 -198
  21. data/core/vendor/src/crfsuite/config.sub +0 -1714
  22. data/core/vendor/src/crfsuite/configure +0 -14273
  23. data/core/vendor/src/crfsuite/configure.in +0 -149
  24. data/core/vendor/src/crfsuite/crfsuite.sln +0 -42
  25. data/core/vendor/src/crfsuite/depcomp +0 -630
  26. data/core/vendor/src/crfsuite/example/chunking.py +0 -49
  27. data/core/vendor/src/crfsuite/example/crfutils.py +0 -179
  28. data/core/vendor/src/crfsuite/example/ner.py +0 -270
  29. data/core/vendor/src/crfsuite/example/pos.py +0 -78
  30. data/core/vendor/src/crfsuite/example/template.py +0 -88
  31. data/core/vendor/src/crfsuite/frontend/Makefile.am +0 -29
  32. data/core/vendor/src/crfsuite/frontend/Makefile.in +0 -640
  33. data/core/vendor/src/crfsuite/frontend/dump.c +0 -116
  34. data/core/vendor/src/crfsuite/frontend/frontend.vcxproj +0 -129
  35. data/core/vendor/src/crfsuite/frontend/iwa.c +0 -273
  36. data/core/vendor/src/crfsuite/frontend/iwa.h +0 -65
  37. data/core/vendor/src/crfsuite/frontend/learn.c +0 -439
  38. data/core/vendor/src/crfsuite/frontend/main.c +0 -137
  39. data/core/vendor/src/crfsuite/frontend/option.c +0 -93
  40. data/core/vendor/src/crfsuite/frontend/option.h +0 -86
  41. data/core/vendor/src/crfsuite/frontend/readdata.h +0 -38
  42. data/core/vendor/src/crfsuite/frontend/reader.c +0 -136
  43. data/core/vendor/src/crfsuite/frontend/tag.c +0 -427
  44. data/core/vendor/src/crfsuite/genbinary.sh.in +0 -15
  45. data/core/vendor/src/crfsuite/include/Makefile.am +0 -11
  46. data/core/vendor/src/crfsuite/include/Makefile.in +0 -461
  47. data/core/vendor/src/crfsuite/include/crfsuite.h +0 -1063
  48. data/core/vendor/src/crfsuite/include/crfsuite.hpp +0 -555
  49. data/core/vendor/src/crfsuite/include/crfsuite_api.hpp +0 -400
  50. data/core/vendor/src/crfsuite/include/os.h +0 -61
  51. data/core/vendor/src/crfsuite/install-sh +0 -520
  52. data/core/vendor/src/crfsuite/lib/cqdb/COPYING +0 -28
  53. data/core/vendor/src/crfsuite/lib/cqdb/Makefile.am +0 -21
  54. data/core/vendor/src/crfsuite/lib/cqdb/Makefile.in +0 -549
  55. data/core/vendor/src/crfsuite/lib/cqdb/cqdb.vcxproj +0 -86
  56. data/core/vendor/src/crfsuite/lib/cqdb/include/cqdb.h +0 -524
  57. data/core/vendor/src/crfsuite/lib/cqdb/src/cqdb.c +0 -587
  58. data/core/vendor/src/crfsuite/lib/cqdb/src/lookup3.c +0 -976
  59. data/core/vendor/src/crfsuite/lib/crf/Makefile.am +0 -46
  60. data/core/vendor/src/crfsuite/lib/crf/Makefile.in +0 -721
  61. data/core/vendor/src/crfsuite/lib/crf/crf.vcxproj +0 -216
  62. data/core/vendor/src/crfsuite/lib/crf/src/crf1d.h +0 -353
  63. data/core/vendor/src/crfsuite/lib/crf/src/crf1d_context.c +0 -705
  64. data/core/vendor/src/crfsuite/lib/crf/src/crf1d_encode.c +0 -943
  65. data/core/vendor/src/crfsuite/lib/crf/src/crf1d_feature.c +0 -352
  66. data/core/vendor/src/crfsuite/lib/crf/src/crf1d_model.c +0 -994
  67. data/core/vendor/src/crfsuite/lib/crf/src/crf1d_tag.c +0 -550
  68. data/core/vendor/src/crfsuite/lib/crf/src/crfsuite.c +0 -492
  69. data/core/vendor/src/crfsuite/lib/crf/src/crfsuite_internal.h +0 -236
  70. data/core/vendor/src/crfsuite/lib/crf/src/crfsuite_train.c +0 -272
  71. data/core/vendor/src/crfsuite/lib/crf/src/dataset.c +0 -106
  72. data/core/vendor/src/crfsuite/lib/crf/src/dictionary.c +0 -118
  73. data/core/vendor/src/crfsuite/lib/crf/src/holdout.c +0 -80
  74. data/core/vendor/src/crfsuite/lib/crf/src/logging.c +0 -91
  75. data/core/vendor/src/crfsuite/lib/crf/src/logging.h +0 -48
  76. data/core/vendor/src/crfsuite/lib/crf/src/params.c +0 -335
  77. data/core/vendor/src/crfsuite/lib/crf/src/params.h +0 -80
  78. data/core/vendor/src/crfsuite/lib/crf/src/quark.c +0 -172
  79. data/core/vendor/src/crfsuite/lib/crf/src/quark.h +0 -46
  80. data/core/vendor/src/crfsuite/lib/crf/src/rumavl.c +0 -1107
  81. data/core/vendor/src/crfsuite/lib/crf/src/rumavl.h +0 -160
  82. data/core/vendor/src/crfsuite/lib/crf/src/train_arow.c +0 -408
  83. data/core/vendor/src/crfsuite/lib/crf/src/train_averaged_perceptron.c +0 -242
  84. data/core/vendor/src/crfsuite/lib/crf/src/train_l2sgd.c +0 -507
  85. data/core/vendor/src/crfsuite/lib/crf/src/train_lbfgs.c +0 -338
  86. data/core/vendor/src/crfsuite/lib/crf/src/train_passive_aggressive.c +0 -435
  87. data/core/vendor/src/crfsuite/lib/crf/src/vecmath.h +0 -341
  88. data/core/vendor/src/crfsuite/ltmain.sh +0 -8413
  89. data/core/vendor/src/crfsuite/missing +0 -376
  90. data/core/vendor/src/crfsuite/swig/Makefile.am +0 -13
  91. data/core/vendor/src/crfsuite/swig/Makefile.in +0 -365
  92. data/core/vendor/src/crfsuite/swig/crfsuite.cpp +0 -2
  93. data/core/vendor/src/crfsuite/swig/export.i +0 -32
  94. data/core/vendor/src/crfsuite/swig/python/README +0 -92
  95. data/core/vendor/src/crfsuite/swig/python/crfsuite.py +0 -329
  96. data/core/vendor/src/crfsuite/swig/python/export_wrap.cpp +0 -14355
  97. data/core/vendor/src/crfsuite/swig/python/export_wrap.h +0 -63
  98. data/core/vendor/src/crfsuite/swig/python/prepare.sh +0 -9
  99. data/core/vendor/src/crfsuite/swig/python/sample_tag.py +0 -52
  100. data/core/vendor/src/crfsuite/swig/python/sample_train.py +0 -68
  101. data/core/vendor/src/crfsuite/swig/python/setup.py +0 -44
  102. data/core/vendor/src/crfsuite/win32/stdint.h +0 -679
  103. data/core/vendor/src/liblbfgs/AUTHORS +0 -1
  104. data/core/vendor/src/liblbfgs/COPYING +0 -22
  105. data/core/vendor/src/liblbfgs/ChangeLog +0 -120
  106. data/core/vendor/src/liblbfgs/INSTALL +0 -231
  107. data/core/vendor/src/liblbfgs/Makefile.am +0 -10
  108. data/core/vendor/src/liblbfgs/Makefile.in +0 -638
  109. data/core/vendor/src/liblbfgs/NEWS +0 -0
  110. data/core/vendor/src/liblbfgs/README +0 -71
  111. data/core/vendor/src/liblbfgs/aclocal.m4 +0 -6985
  112. data/core/vendor/src/liblbfgs/autogen.sh +0 -38
  113. data/core/vendor/src/liblbfgs/config.guess +0 -1411
  114. data/core/vendor/src/liblbfgs/config.h.in +0 -64
  115. data/core/vendor/src/liblbfgs/config.sub +0 -1500
  116. data/core/vendor/src/liblbfgs/configure +0 -21146
  117. data/core/vendor/src/liblbfgs/configure.in +0 -107
  118. data/core/vendor/src/liblbfgs/depcomp +0 -522
  119. data/core/vendor/src/liblbfgs/include/lbfgs.h +0 -745
  120. data/core/vendor/src/liblbfgs/install-sh +0 -322
  121. data/core/vendor/src/liblbfgs/lbfgs.sln +0 -26
  122. data/core/vendor/src/liblbfgs/lib/Makefile.am +0 -24
  123. data/core/vendor/src/liblbfgs/lib/Makefile.in +0 -499
  124. data/core/vendor/src/liblbfgs/lib/arithmetic_ansi.h +0 -133
  125. data/core/vendor/src/liblbfgs/lib/arithmetic_sse_double.h +0 -294
  126. data/core/vendor/src/liblbfgs/lib/arithmetic_sse_float.h +0 -298
  127. data/core/vendor/src/liblbfgs/lib/lbfgs.c +0 -1371
  128. data/core/vendor/src/liblbfgs/lib/lib.vcxproj +0 -95
  129. data/core/vendor/src/liblbfgs/ltmain.sh +0 -6426
  130. data/core/vendor/src/liblbfgs/missing +0 -353
  131. data/core/vendor/src/liblbfgs/sample/Makefile.am +0 -15
  132. data/core/vendor/src/liblbfgs/sample/Makefile.in +0 -433
  133. data/core/vendor/src/liblbfgs/sample/sample.c +0 -81
  134. data/core/vendor/src/liblbfgs/sample/sample.cpp +0 -126
  135. data/core/vendor/src/liblbfgs/sample/sample.vcxproj +0 -105
  136. data/core/vendor/src/svm_light/LICENSE.txt +0 -59
  137. data/core/vendor/src/svm_light/Makefile +0 -105
  138. data/core/vendor/src/svm_light/kernel.h +0 -40
  139. data/core/vendor/src/svm_light/svm_classify.c +0 -197
  140. data/core/vendor/src/svm_light/svm_common.c +0 -985
  141. data/core/vendor/src/svm_light/svm_common.h +0 -301
  142. data/core/vendor/src/svm_light/svm_hideo.c +0 -1062
  143. data/core/vendor/src/svm_light/svm_learn.c +0 -4147
  144. data/core/vendor/src/svm_light/svm_learn.h +0 -169
  145. data/core/vendor/src/svm_light/svm_learn_main.c +0 -397
  146. data/core/vendor/src/svm_light/svm_loqo.c +0 -211
  147. data/task/c.rake +0 -36
  148. data/task/submodules.rake +0 -5
@@ -1,365 +0,0 @@
1
- # Makefile.in generated by automake 1.11.1 from Makefile.am.
2
- # @configure_input@
3
-
4
- # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
5
- # 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
6
- # Inc.
7
- # This Makefile.in is free software; the Free Software Foundation
8
- # gives unlimited permission to copy and/or distribute it,
9
- # with or without modifications, as long as this notice is preserved.
10
-
11
- # This program is distributed in the hope that it will be useful,
12
- # but WITHOUT ANY WARRANTY, to the extent permitted by law; without
13
- # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
14
- # PARTICULAR PURPOSE.
15
-
16
- @SET_MAKE@
17
-
18
- # $Id:$
19
- VPATH = @srcdir@
20
- pkgdatadir = $(datadir)/@PACKAGE@
21
- pkgincludedir = $(includedir)/@PACKAGE@
22
- pkglibdir = $(libdir)/@PACKAGE@
23
- pkglibexecdir = $(libexecdir)/@PACKAGE@
24
- am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
25
- install_sh_DATA = $(install_sh) -c -m 644
26
- install_sh_PROGRAM = $(install_sh) -c
27
- install_sh_SCRIPT = $(install_sh) -c
28
- INSTALL_HEADER = $(INSTALL_DATA)
29
- transform = $(program_transform_name)
30
- NORMAL_INSTALL = :
31
- PRE_INSTALL = :
32
- POST_INSTALL = :
33
- NORMAL_UNINSTALL = :
34
- PRE_UNINSTALL = :
35
- POST_UNINSTALL = :
36
- build_triplet = @build@
37
- host_triplet = @host@
38
- subdir = swig
39
- DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
40
- ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
41
- am__aclocal_m4_deps = $(top_srcdir)/configure.in
42
- am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
43
- $(ACLOCAL_M4)
44
- mkinstalldirs = $(install_sh) -d
45
- CONFIG_HEADER = $(top_builddir)/config.h
46
- CONFIG_CLEAN_FILES =
47
- CONFIG_CLEAN_VPATH_FILES =
48
- SOURCES =
49
- DIST_SOURCES =
50
- DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
51
- ACLOCAL = @ACLOCAL@
52
- ALLOCA = @ALLOCA@
53
- AMTAR = @AMTAR@
54
- AR = @AR@
55
- AUTOCONF = @AUTOCONF@
56
- AUTOHEADER = @AUTOHEADER@
57
- AUTOMAKE = @AUTOMAKE@
58
- AWK = @AWK@
59
- CC = @CC@
60
- CCDEPMODE = @CCDEPMODE@
61
- CFLAGS = @CFLAGS@
62
- CPP = @CPP@
63
- CPPFLAGS = @CPPFLAGS@
64
- CYGPATH_W = @CYGPATH_W@
65
- DEFS = @DEFS@
66
- DEPDIR = @DEPDIR@
67
- DSYMUTIL = @DSYMUTIL@
68
- DUMPBIN = @DUMPBIN@
69
- ECHO_C = @ECHO_C@
70
- ECHO_N = @ECHO_N@
71
- ECHO_T = @ECHO_T@
72
- EGREP = @EGREP@
73
- EXEEXT = @EXEEXT@
74
- FGREP = @FGREP@
75
- GREP = @GREP@
76
- INCLUDES = @INCLUDES@
77
- INSTALL = @INSTALL@
78
- INSTALL_DATA = @INSTALL_DATA@
79
- INSTALL_PROGRAM = @INSTALL_PROGRAM@
80
- INSTALL_SCRIPT = @INSTALL_SCRIPT@
81
- INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
82
- LD = @LD@
83
- LDFLAGS = @LDFLAGS@
84
- LIBOBJS = @LIBOBJS@
85
- LIBS = @LIBS@
86
- LIBTOOL = @LIBTOOL@
87
- LIPO = @LIPO@
88
- LN_S = @LN_S@
89
- LTLIBOBJS = @LTLIBOBJS@
90
- MAINT = @MAINT@
91
- MAKEINFO = @MAKEINFO@
92
- MKDIR_P = @MKDIR_P@
93
- NM = @NM@
94
- NMEDIT = @NMEDIT@
95
- OBJDUMP = @OBJDUMP@
96
- OBJEXT = @OBJEXT@
97
- OTOOL = @OTOOL@
98
- OTOOL64 = @OTOOL64@
99
- PACKAGE = @PACKAGE@
100
- PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
101
- PACKAGE_NAME = @PACKAGE_NAME@
102
- PACKAGE_STRING = @PACKAGE_STRING@
103
- PACKAGE_TARNAME = @PACKAGE_TARNAME@
104
- PACKAGE_URL = @PACKAGE_URL@
105
- PACKAGE_VERSION = @PACKAGE_VERSION@
106
- PATH_SEPARATOR = @PATH_SEPARATOR@
107
- RANLIB = @RANLIB@
108
- SED = @SED@
109
- SET_MAKE = @SET_MAKE@
110
- SHELL = @SHELL@
111
- STRIP = @STRIP@
112
- U = @U@
113
- VERSION = @VERSION@
114
- abs_builddir = @abs_builddir@
115
- abs_srcdir = @abs_srcdir@
116
- abs_top_builddir = @abs_top_builddir@
117
- abs_top_srcdir = @abs_top_srcdir@
118
- ac_ct_CC = @ac_ct_CC@
119
- ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
120
- am__include = @am__include@
121
- am__leading_dot = @am__leading_dot@
122
- am__quote = @am__quote@
123
- am__tar = @am__tar@
124
- am__untar = @am__untar@
125
- bindir = @bindir@
126
- build = @build@
127
- build_alias = @build_alias@
128
- build_cpu = @build_cpu@
129
- build_os = @build_os@
130
- build_vendor = @build_vendor@
131
- builddir = @builddir@
132
- datadir = @datadir@
133
- datarootdir = @datarootdir@
134
- docdir = @docdir@
135
- dvidir = @dvidir@
136
- exec_prefix = @exec_prefix@
137
- host = @host@
138
- host_alias = @host_alias@
139
- host_cpu = @host_cpu@
140
- host_os = @host_os@
141
- host_vendor = @host_vendor@
142
- htmldir = @htmldir@
143
- includedir = @includedir@
144
- infodir = @infodir@
145
- install_sh = @install_sh@
146
- libdir = @libdir@
147
- libexecdir = @libexecdir@
148
- localedir = @localedir@
149
- localstatedir = @localstatedir@
150
- lt_ECHO = @lt_ECHO@
151
- mandir = @mandir@
152
- mkdir_p = @mkdir_p@
153
- oldincludedir = @oldincludedir@
154
- pdfdir = @pdfdir@
155
- prefix = @prefix@
156
- program_transform_name = @program_transform_name@
157
- psdir = @psdir@
158
- sbindir = @sbindir@
159
- sharedstatedir = @sharedstatedir@
160
- srcdir = @srcdir@
161
- sysconfdir = @sysconfdir@
162
- target_alias = @target_alias@
163
- top_build_prefix = @top_build_prefix@
164
- top_builddir = @top_builddir@
165
- top_srcdir = @top_srcdir@
166
- EXTRA_DIST = \
167
- python/README \
168
- python/prepare.sh \
169
- python/crfsuite.py \
170
- python/export_wrap.h \
171
- python/export_wrap.cpp \
172
- python/setup.py \
173
- python/sample_tag.py \
174
- python/sample_train.py \
175
- export.i \
176
- crfsuite.cpp
177
-
178
- all: all-am
179
-
180
- .SUFFIXES:
181
- $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps)
182
- @for dep in $?; do \
183
- case '$(am__configure_deps)' in \
184
- *$$dep*) \
185
- ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
186
- && { if test -f $@; then exit 0; else break; fi; }; \
187
- exit 1;; \
188
- esac; \
189
- done; \
190
- echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu swig/Makefile'; \
191
- $(am__cd) $(top_srcdir) && \
192
- $(AUTOMAKE) --gnu swig/Makefile
193
- .PRECIOUS: Makefile
194
- Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
195
- @case '$?' in \
196
- *config.status*) \
197
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
198
- *) \
199
- echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
200
- cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
201
- esac;
202
-
203
- $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
204
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
205
-
206
- $(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps)
207
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
208
- $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps)
209
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
210
- $(am__aclocal_m4_deps):
211
-
212
- mostlyclean-libtool:
213
- -rm -f *.lo
214
-
215
- clean-libtool:
216
- -rm -rf .libs _libs
217
- tags: TAGS
218
- TAGS:
219
-
220
- ctags: CTAGS
221
- CTAGS:
222
-
223
-
224
- distdir: $(DISTFILES)
225
- @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
226
- topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
227
- list='$(DISTFILES)'; \
228
- dist_files=`for file in $$list; do echo $$file; done | \
229
- sed -e "s|^$$srcdirstrip/||;t" \
230
- -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
231
- case $$dist_files in \
232
- */*) $(MKDIR_P) `echo "$$dist_files" | \
233
- sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
234
- sort -u` ;; \
235
- esac; \
236
- for file in $$dist_files; do \
237
- if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
238
- if test -d $$d/$$file; then \
239
- dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
240
- if test -d "$(distdir)/$$file"; then \
241
- find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
242
- fi; \
243
- if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
244
- cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
245
- find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
246
- fi; \
247
- cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
248
- else \
249
- test -f "$(distdir)/$$file" \
250
- || cp -p $$d/$$file "$(distdir)/$$file" \
251
- || exit 1; \
252
- fi; \
253
- done
254
- check-am: all-am
255
- check: check-am
256
- all-am: Makefile
257
- installdirs:
258
- install: install-am
259
- install-exec: install-exec-am
260
- install-data: install-data-am
261
- uninstall: uninstall-am
262
-
263
- install-am: all-am
264
- @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
265
-
266
- installcheck: installcheck-am
267
- install-strip:
268
- $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
269
- install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
270
- `test -z '$(STRIP)' || \
271
- echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
272
- mostlyclean-generic:
273
-
274
- clean-generic:
275
-
276
- distclean-generic:
277
- -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
278
- -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
279
-
280
- maintainer-clean-generic:
281
- @echo "This command is intended for maintainers to use"
282
- @echo "it deletes files that may require special tools to rebuild."
283
- clean: clean-am
284
-
285
- clean-am: clean-generic clean-libtool mostlyclean-am
286
-
287
- distclean: distclean-am
288
- -rm -f Makefile
289
- distclean-am: clean-am distclean-generic
290
-
291
- dvi: dvi-am
292
-
293
- dvi-am:
294
-
295
- html: html-am
296
-
297
- html-am:
298
-
299
- info: info-am
300
-
301
- info-am:
302
-
303
- install-data-am:
304
-
305
- install-dvi: install-dvi-am
306
-
307
- install-dvi-am:
308
-
309
- install-exec-am:
310
-
311
- install-html: install-html-am
312
-
313
- install-html-am:
314
-
315
- install-info: install-info-am
316
-
317
- install-info-am:
318
-
319
- install-man:
320
-
321
- install-pdf: install-pdf-am
322
-
323
- install-pdf-am:
324
-
325
- install-ps: install-ps-am
326
-
327
- install-ps-am:
328
-
329
- installcheck-am:
330
-
331
- maintainer-clean: maintainer-clean-am
332
- -rm -f Makefile
333
- maintainer-clean-am: distclean-am maintainer-clean-generic
334
-
335
- mostlyclean: mostlyclean-am
336
-
337
- mostlyclean-am: mostlyclean-generic mostlyclean-libtool
338
-
339
- pdf: pdf-am
340
-
341
- pdf-am:
342
-
343
- ps: ps-am
344
-
345
- ps-am:
346
-
347
- uninstall-am:
348
-
349
- .MAKE: install-am install-strip
350
-
351
- .PHONY: all all-am check check-am clean clean-generic clean-libtool \
352
- distclean distclean-generic distclean-libtool distdir dvi \
353
- dvi-am html html-am info info-am install install-am \
354
- install-data install-data-am install-dvi install-dvi-am \
355
- install-exec install-exec-am install-html install-html-am \
356
- install-info install-info-am install-man install-pdf \
357
- install-pdf-am install-ps install-ps-am install-strip \
358
- installcheck installcheck-am installdirs maintainer-clean \
359
- maintainer-clean-generic mostlyclean mostlyclean-generic \
360
- mostlyclean-libtool pdf pdf-am ps ps-am uninstall uninstall-am
361
-
362
-
363
- # Tell versions [3.59,3.63) of GNU make to not export all variables.
364
- # Otherwise a system limit (for SysV at least) may be exceeded.
365
- .NOEXPORT:
@@ -1,2 +0,0 @@
1
- #include <crfsuite.hpp>
2
-
@@ -1,32 +0,0 @@
1
- %module(directors="1") crfsuite
2
-
3
- %{
4
- #include "crfsuite_api.hpp"
5
- %}
6
-
7
- %include "std_string.i"
8
- %include "std_vector.i"
9
- %include "exception.i"
10
-
11
- %template(Item) std::vector<CRFSuite::Attribute>;
12
- %template(ItemSequence) std::vector<CRFSuite::Item>;
13
- %template(StringList) std::vector<std::string>;
14
-
15
- %feature("director") Trainer;
16
-
17
- %exception {
18
- try {
19
- $action
20
- } catch(const std::invalid_argument& e) {
21
- SWIG_exception(SWIG_IOError, e.what());
22
- } catch(const std::runtime_error& e) {
23
- SWIG_exception(SWIG_RuntimeError, e.what());
24
- } catch (const std::exception& e) {
25
- SWIG_exception(SWIG_RuntimeError, e.what());
26
- } catch(...) {
27
- SWIG_exception(SWIG_RuntimeError,"Unknown exception");
28
- }
29
- }
30
-
31
- %include "crfsuite_api.hpp"
32
-
@@ -1,92 +0,0 @@
1
- CRFsuite Python module via SWIG
2
-
3
- * HOW TO BUILD
4
-
5
- 0. Build CRFsuite and install it (the library and include files are necessary)
6
-
7
- 1. Generate a SWIG wrapper
8
- $ ./prepare.sh --swig
9
-
10
- 2. Build the binding.
11
- $ python setup.py build_ext
12
-
13
- 3. Install the binding.
14
- $ python setup.py install
15
-
16
- 4. Run the binding.
17
- $ python
18
- Python 2.6.6 (r266:84292, Sep 15 2010, 16:22:56)
19
- [GCC 4.4.5] on linux2
20
- Type "help", "copyright", "credits" or "license" for more information.
21
- >>> import crfsuite
22
- >>>
23
-
24
-
25
- * SAMPLE PROGRAMS
26
- Refer to sample_train.py and sample_test.py
27
-
28
-
29
-
30
- * NOTES FOR INSTALLING CRFSUITE IN A NON-DEFAULT DIRECTORY
31
-
32
- If you have changed the installation directory of CRFsuite using --prefix
33
- option for the configure script, please specify the include and library
34
- directories to setup.py; for example, if you have installed CRFsuite into
35
- $HOME/local directory, run:
36
-
37
- $ python setup.py build_ext --include-dir=$HOME/local/include --library-dirs=$HOME/local/lib
38
-
39
- Be sure to set LD_LIBRARY_PATH so that the Python binding can find the shared
40
- library of CRFsuite (crfsuite.so). For example,
41
-
42
- $ export LD_LIBRARY_PATH=$HOME/local/lib
43
-
44
- Otherwise, you will get this kind of an error:
45
-
46
- $ python
47
- Python 2.6.6 (r266:84292, Sep 15 2010, 16:22:56)
48
- [GCC 4.4.5] on linux2
49
- Type "help", "copyright", "credits" or "license" for more information.
50
- >>> import crfsuite
51
- Traceback (most recent call last):
52
- File "<stdin>", line 1, in <module>
53
- File "crfsuite.py", line 25, in <module>
54
- _crfsuite = swig_import_helper()
55
- File "crfsuite.py", line 21, in swig_import_helper
56
- _mod = imp.load_module('_crfsuite', fp, pathname, description)
57
- ImportError: libcrfsuite-0.12.so: cannot open shared object file: No such
58
- file or directory
59
-
60
-
61
-
62
- * NOTES FOR TESTING THE PYTHON MODULE WITHOUT INSTALLING IT
63
-
64
- Adding "--inplace" option to the command-line argument of setup.py builds
65
- _crfsuite.so in the current directory. If these files are placed on the
66
- directory included in the module path of Python (e.g., the current directory
67
- where a Python process is created), one can try the module without running
68
- "python setup.py install"
69
-
70
- $ python setup.py build_ext --inplace
71
-
72
-
73
-
74
- * NOTES FOR GENERATING WRAPPER CODE USING SWIG.
75
-
76
- The script "prepare.sh" can generate a SWIG wrapper with "--swig" option.
77
- $ ./prepare.sh --swig
78
-
79
- However, we may get a compiling error for the wrapper code (export_wrap.cpp)
80
- even with the latest version of SWIG (2.0.4):
81
-
82
- export_wrap.cpp:5019: error: redefinition of ?struct swig::traits<std::vector<
83
- CRFSuite::Attribute, std::allocator<CRFSuite::Attribute> > >
84
- export_wrap.cpp:4918: error: previous definition of ?struct swig::traits<std::
85
- vector<CRFSuite::Attribute, std::allocator<CRFSuite::Attribute> > >
86
- error: command 'g++' failed with exit status 1
87
-
88
- Having no idea how to fix this problem elegantly, I simply remove the latter
89
- definition from export_wrap.cpp manually. This is why I end up including
90
- the wrapper code into the source repository.
91
-
92
-