opener-opinion-detector-base 2.1.4 → 2.1.5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0407d924045112965e134fb45127be56f157069f
4
- data.tar.gz: bcfa8e37698e4502513e586d36545a940664bdfe
3
+ metadata.gz: 7de801f3bbc36a458a70d1f6ef87685609c099ba
4
+ data.tar.gz: e32ddc8aa9e72a993a59ea7c14c0fd3ff1d67f07
5
5
  SHA512:
6
- metadata.gz: ffd0a512d42769a72e4fb4b58305c0f9c4987fd88d0dabfc6ca87f655067c5c8f2420056bd162f6d964cd93c8e5fc6f455272bf6e17d6651c3bb7b7e052ebadf
7
- data.tar.gz: 5880a42a78bf9da44733998f0be5e9f9c92f4f1ed51628b40973de97e85803fbf8441eec8c053ef766eb83274031a6608bd5789b25fe0bd0f3c0517d8313cc08
6
+ metadata.gz: a50fa0cee6a32cb981754ff353201dd1d81de5031e63879268cbfc53fa719e39420a66c42e7e634da807740f0c187e1743c1ef9646696e24c5ef146f617f99c3
7
+ data.tar.gz: 2b3804870b0f73e460d9e79a7024192e25e194da4526420f77b8e5c584dd4adae6746cf629120dd800657a28f86ced5b768acc376a26910a689d75be09628733
@@ -1,42 +1,42 @@
1
- 
2
- Microsoft Visual Studio Solution File, Format Version 11.00
3
- # Visual Studio 2010
4
- Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "crf", "lib\crf\crf.vcxproj", "{D6B16F2E-DA86-4591-8B50-348AB7E3432E}"
5
- EndProject
6
- Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "frontend", "frontend\frontend.vcxproj", "{CEC83336-7B18-408B-9F3C-D11225609540}"
7
- EndProject
8
- Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "cqdb", "lib\cqdb\cqdb.vcxproj", "{46A23DE6-7E34-4429-8F15-FCC3C083FC5B}"
9
- EndProject
10
- Global
11
- GlobalSection(SolutionConfigurationPlatforms) = preSolution
12
- Debug|Win32 = Debug|Win32
13
- Debug|x64 = Debug|x64
14
- Release|Win32 = Release|Win32
15
- Release|x64 = Release|x64
16
- EndGlobalSection
17
- GlobalSection(ProjectConfigurationPlatforms) = postSolution
18
- {D6B16F2E-DA86-4591-8B50-348AB7E3432E}.Debug|Win32.ActiveCfg = Debug|Win32
19
- {D6B16F2E-DA86-4591-8B50-348AB7E3432E}.Debug|Win32.Build.0 = Debug|Win32
20
- {D6B16F2E-DA86-4591-8B50-348AB7E3432E}.Debug|x64.ActiveCfg = Debug|Win32
21
- {D6B16F2E-DA86-4591-8B50-348AB7E3432E}.Debug|x64.Build.0 = Debug|Win32
22
- {D6B16F2E-DA86-4591-8B50-348AB7E3432E}.Release|Win32.ActiveCfg = Release|Win32
23
- {D6B16F2E-DA86-4591-8B50-348AB7E3432E}.Release|Win32.Build.0 = Release|Win32
24
- {D6B16F2E-DA86-4591-8B50-348AB7E3432E}.Release|x64.ActiveCfg = Release|x64
25
- {D6B16F2E-DA86-4591-8B50-348AB7E3432E}.Release|x64.Build.0 = Release|x64
26
- {CEC83336-7B18-408B-9F3C-D11225609540}.Debug|Win32.ActiveCfg = Debug|Win32
27
- {CEC83336-7B18-408B-9F3C-D11225609540}.Debug|Win32.Build.0 = Debug|Win32
28
- {CEC83336-7B18-408B-9F3C-D11225609540}.Debug|x64.ActiveCfg = Debug|Win32
29
- {CEC83336-7B18-408B-9F3C-D11225609540}.Release|Win32.ActiveCfg = Release|Win32
30
- {CEC83336-7B18-408B-9F3C-D11225609540}.Release|Win32.Build.0 = Release|Win32
31
- {CEC83336-7B18-408B-9F3C-D11225609540}.Release|x64.ActiveCfg = Release|Win32
32
- {46A23DE6-7E34-4429-8F15-FCC3C083FC5B}.Debug|Win32.ActiveCfg = Debug|Win32
33
- {46A23DE6-7E34-4429-8F15-FCC3C083FC5B}.Debug|Win32.Build.0 = Debug|Win32
34
- {46A23DE6-7E34-4429-8F15-FCC3C083FC5B}.Debug|x64.ActiveCfg = Debug|Win32
35
- {46A23DE6-7E34-4429-8F15-FCC3C083FC5B}.Release|Win32.ActiveCfg = Release|Win32
36
- {46A23DE6-7E34-4429-8F15-FCC3C083FC5B}.Release|Win32.Build.0 = Release|Win32
37
- {46A23DE6-7E34-4429-8F15-FCC3C083FC5B}.Release|x64.ActiveCfg = Release|Win32
38
- EndGlobalSection
39
- GlobalSection(SolutionProperties) = preSolution
40
- HideSolutionNode = FALSE
41
- EndGlobalSection
42
- EndGlobal
1
+ 
2
+ Microsoft Visual Studio Solution File, Format Version 11.00
3
+ # Visual Studio 2010
4
+ Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "crf", "lib\crf\crf.vcxproj", "{D6B16F2E-DA86-4591-8B50-348AB7E3432E}"
5
+ EndProject
6
+ Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "frontend", "frontend\frontend.vcxproj", "{CEC83336-7B18-408B-9F3C-D11225609540}"
7
+ EndProject
8
+ Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "cqdb", "lib\cqdb\cqdb.vcxproj", "{46A23DE6-7E34-4429-8F15-FCC3C083FC5B}"
9
+ EndProject
10
+ Global
11
+ GlobalSection(SolutionConfigurationPlatforms) = preSolution
12
+ Debug|Win32 = Debug|Win32
13
+ Debug|x64 = Debug|x64
14
+ Release|Win32 = Release|Win32
15
+ Release|x64 = Release|x64
16
+ EndGlobalSection
17
+ GlobalSection(ProjectConfigurationPlatforms) = postSolution
18
+ {D6B16F2E-DA86-4591-8B50-348AB7E3432E}.Debug|Win32.ActiveCfg = Debug|Win32
19
+ {D6B16F2E-DA86-4591-8B50-348AB7E3432E}.Debug|Win32.Build.0 = Debug|Win32
20
+ {D6B16F2E-DA86-4591-8B50-348AB7E3432E}.Debug|x64.ActiveCfg = Debug|Win32
21
+ {D6B16F2E-DA86-4591-8B50-348AB7E3432E}.Debug|x64.Build.0 = Debug|Win32
22
+ {D6B16F2E-DA86-4591-8B50-348AB7E3432E}.Release|Win32.ActiveCfg = Release|Win32
23
+ {D6B16F2E-DA86-4591-8B50-348AB7E3432E}.Release|Win32.Build.0 = Release|Win32
24
+ {D6B16F2E-DA86-4591-8B50-348AB7E3432E}.Release|x64.ActiveCfg = Release|x64
25
+ {D6B16F2E-DA86-4591-8B50-348AB7E3432E}.Release|x64.Build.0 = Release|x64
26
+ {CEC83336-7B18-408B-9F3C-D11225609540}.Debug|Win32.ActiveCfg = Debug|Win32
27
+ {CEC83336-7B18-408B-9F3C-D11225609540}.Debug|Win32.Build.0 = Debug|Win32
28
+ {CEC83336-7B18-408B-9F3C-D11225609540}.Debug|x64.ActiveCfg = Debug|Win32
29
+ {CEC83336-7B18-408B-9F3C-D11225609540}.Release|Win32.ActiveCfg = Release|Win32
30
+ {CEC83336-7B18-408B-9F3C-D11225609540}.Release|Win32.Build.0 = Release|Win32
31
+ {CEC83336-7B18-408B-9F3C-D11225609540}.Release|x64.ActiveCfg = Release|Win32
32
+ {46A23DE6-7E34-4429-8F15-FCC3C083FC5B}.Debug|Win32.ActiveCfg = Debug|Win32
33
+ {46A23DE6-7E34-4429-8F15-FCC3C083FC5B}.Debug|Win32.Build.0 = Debug|Win32
34
+ {46A23DE6-7E34-4429-8F15-FCC3C083FC5B}.Debug|x64.ActiveCfg = Debug|Win32
35
+ {46A23DE6-7E34-4429-8F15-FCC3C083FC5B}.Release|Win32.ActiveCfg = Release|Win32
36
+ {46A23DE6-7E34-4429-8F15-FCC3C083FC5B}.Release|Win32.Build.0 = Release|Win32
37
+ {46A23DE6-7E34-4429-8F15-FCC3C083FC5B}.Release|x64.ActiveCfg = Release|Win32
38
+ EndGlobalSection
39
+ GlobalSection(SolutionProperties) = preSolution
40
+ HideSolutionNode = FALSE
41
+ EndGlobalSection
42
+ EndGlobal
@@ -1,26 +1,26 @@
1
- 
2
- Microsoft Visual Studio Solution File, Format Version 11.00
3
- # Visual Studio 2010
4
- Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "lib", "lib\lib.vcxproj", "{C4405B73-A899-44BF-8681-04CE040B6705}"
5
- EndProject
6
- Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "sample", "sample\sample.vcxproj", "{B4D7D5F5-4A4E-49D5-B38A-E5673520DE66}"
7
- EndProject
8
- Global
9
- GlobalSection(SolutionConfigurationPlatforms) = preSolution
10
- Debug|Win32 = Debug|Win32
11
- Release|Win32 = Release|Win32
12
- EndGlobalSection
13
- GlobalSection(ProjectConfigurationPlatforms) = postSolution
14
- {C4405B73-A899-44BF-8681-04CE040B6705}.Debug|Win32.ActiveCfg = Debug|Win32
15
- {C4405B73-A899-44BF-8681-04CE040B6705}.Debug|Win32.Build.0 = Debug|Win32
16
- {C4405B73-A899-44BF-8681-04CE040B6705}.Release|Win32.ActiveCfg = Release|Win32
17
- {C4405B73-A899-44BF-8681-04CE040B6705}.Release|Win32.Build.0 = Release|Win32
18
- {B4D7D5F5-4A4E-49D5-B38A-E5673520DE66}.Debug|Win32.ActiveCfg = Debug|Win32
19
- {B4D7D5F5-4A4E-49D5-B38A-E5673520DE66}.Debug|Win32.Build.0 = Debug|Win32
20
- {B4D7D5F5-4A4E-49D5-B38A-E5673520DE66}.Release|Win32.ActiveCfg = Release|Win32
21
- {B4D7D5F5-4A4E-49D5-B38A-E5673520DE66}.Release|Win32.Build.0 = Release|Win32
22
- EndGlobalSection
23
- GlobalSection(SolutionProperties) = preSolution
24
- HideSolutionNode = FALSE
25
- EndGlobalSection
26
- EndGlobal
1
+ 
2
+ Microsoft Visual Studio Solution File, Format Version 11.00
3
+ # Visual Studio 2010
4
+ Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "lib", "lib\lib.vcxproj", "{C4405B73-A899-44BF-8681-04CE040B6705}"
5
+ EndProject
6
+ Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "sample", "sample\sample.vcxproj", "{B4D7D5F5-4A4E-49D5-B38A-E5673520DE66}"
7
+ EndProject
8
+ Global
9
+ GlobalSection(SolutionConfigurationPlatforms) = preSolution
10
+ Debug|Win32 = Debug|Win32
11
+ Release|Win32 = Release|Win32
12
+ EndGlobalSection
13
+ GlobalSection(ProjectConfigurationPlatforms) = postSolution
14
+ {C4405B73-A899-44BF-8681-04CE040B6705}.Debug|Win32.ActiveCfg = Debug|Win32
15
+ {C4405B73-A899-44BF-8681-04CE040B6705}.Debug|Win32.Build.0 = Debug|Win32
16
+ {C4405B73-A899-44BF-8681-04CE040B6705}.Release|Win32.ActiveCfg = Release|Win32
17
+ {C4405B73-A899-44BF-8681-04CE040B6705}.Release|Win32.Build.0 = Release|Win32
18
+ {B4D7D5F5-4A4E-49D5-B38A-E5673520DE66}.Debug|Win32.ActiveCfg = Debug|Win32
19
+ {B4D7D5F5-4A4E-49D5-B38A-E5673520DE66}.Debug|Win32.Build.0 = Debug|Win32
20
+ {B4D7D5F5-4A4E-49D5-B38A-E5673520DE66}.Release|Win32.ActiveCfg = Release|Win32
21
+ {B4D7D5F5-4A4E-49D5-B38A-E5673520DE66}.Release|Win32.Build.0 = Release|Win32
22
+ EndGlobalSection
23
+ GlobalSection(SolutionProperties) = preSolution
24
+ HideSolutionNode = FALSE
25
+ EndGlobalSection
26
+ EndGlobal
@@ -1,20 +1,10 @@
1
- require 'rake'
2
- require_relative 'support'
3
-
4
- desc 'Verifies the requirements'
5
- task :requirements do
6
- verify_requirements
7
- require_executable("make")
8
- end
9
-
10
- task :compile => :requirements do
11
- compile_vendored_code
12
- end
13
-
14
- task :default => [:compile] do
15
- cd "../../" do
16
- path = File.join(PYTHON_SITE_PACKAGES, 'pre_install')
17
-
18
- pip_install(PRE_INSTALL_REQUIREMENTS, path)
1
+ import File.expand_path('../../../task/requirements.rake', __FILE__)
2
+ import File.expand_path('../../../task/c.rake', __FILE__)
3
+ import File.expand_path('../../../task/python.rake', __FILE__)
4
+
5
+ task :default => :requirements do
6
+ Dir.chdir(File.expand_path('../../../', __FILE__)) do
7
+ Rake::Task['c:compile'].invoke
8
+ Rake::Task['core/site-packages/pre_install'].invoke
19
9
  end
20
10
  end
@@ -1,7 +1,7 @@
1
1
  module Opener
2
2
  module OpinionDetectors
3
3
  class Base
4
- VERSION = "2.1.4"
4
+ VERSION = "2.1.5"
5
5
  end
6
6
  end
7
7
  end
@@ -19,15 +19,16 @@ Gem::Specification.new do |gem|
19
19
  'lib/**/*',
20
20
  '*.gemspec',
21
21
  '*_requirements.txt',
22
- 'README.md'
22
+ 'README.md',
23
+ 'task/*'
23
24
  ]).select { |file| File.file?(file) }
24
25
 
25
26
  gem.executables = Dir.glob('bin/*').map { |file| File.basename(file) }
26
27
 
27
- gem.add_dependency 'opener-build-tools', ['>= 0.2.7']
28
28
  gem.add_dependency 'rake'
29
29
  gem.add_dependency 'nokogiri'
30
+ gem.add_dependency 'cliver'
30
31
 
31
- gem.add_development_dependency 'rspec'
32
+ gem.add_development_dependency 'rspec', '~> 3.0'
32
33
  gem.add_development_dependency 'cucumber'
33
34
  end
@@ -0,0 +1,36 @@
1
+ build_dir = File.expand_path('../../core/vendor/build', __FILE__)
2
+ bin_dir = File.join(build_dir, 'bin')
3
+
4
+ # Names of the various files to build. We're using variables here since they're
5
+ # a bit too painful to type multiple times.
6
+ liblbfgs = "core/vendor/build/lib/liblbfgs.#{RbConfig::CONFIG['DLEXT']}"
7
+ crfsuite = 'core/vendor/build/bin/crfsuite'
8
+ svm_classify = 'core/vendor/build/bin/svm_classify'
9
+ svm_learn = 'core/vendor/build/bin/svm_learn'
10
+
11
+ file liblbfgs do
12
+ Dir.chdir('core/vendor/src/liblbfgs') do
13
+ sh "./configure --prefix=#{build_dir}"
14
+ sh 'make && make install && make distclean'
15
+ end
16
+ end
17
+
18
+ file crfsuite => liblbfgs do
19
+ Dir.chdir('core/vendor/src/crfsuite') do
20
+ sh "./configure --prefix=#{build_dir} --with-liblbfgs=#{build_dir}"
21
+ sh 'make && make install && make distclean'
22
+ end
23
+ end
24
+
25
+ file svm_classify do
26
+ Dir.chdir('core/vendor/src/svm_light') do
27
+ sh 'make'
28
+ sh "cp -f svm_classify svm_learn #{bin_dir}"
29
+ sh 'make clean'
30
+ end
31
+ end
32
+
33
+ namespace :c do
34
+ desc 'Compiles the vendored C code'
35
+ task :compile => [crfsuite, svm_classify]
36
+ end
@@ -0,0 +1,2 @@
1
+ desc 'Verifies requirements and compiles the core'
2
+ task :compile => ['requirements', 'c:compile', 'python:compile']
@@ -0,0 +1,11 @@
1
+ # NOTE: pre_build/pre_install directories are created by pip.
2
+
3
+ directory 'core/site-packages/pre_install' do |task|
4
+ sh "pip install --requirement=pre_install_requirements.txt " \
5
+ "--target=#{task.name} --ignore-installed"
6
+ end
7
+
8
+ namespace :python do
9
+ desc 'Installs Python packages in a local directory'
10
+ task :compile => ['core/site-packages/pre_install']
11
+ end
@@ -0,0 +1,8 @@
1
+ desc 'Verifies the requirements'
2
+ task :requirements do
3
+ require 'cliver'
4
+
5
+ Cliver.detect!('make')
6
+ Cliver.detect!('python', '~> 2.7')
7
+ Cliver.detect!('pip', '~> 1.3')
8
+ end
@@ -0,0 +1,5 @@
1
+ desc 'Updates the Git submodules'
2
+ task :submodules do
3
+ sh 'git submodule init'
4
+ sh 'git submodule update'
5
+ end
@@ -0,0 +1,4 @@
1
+ desc 'Runs the tests'
2
+ task :test => :compile do
3
+ sh('cucumber features')
4
+ end
metadata CHANGED
@@ -1,87 +1,87 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: opener-opinion-detector-base
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.4
4
+ version: 2.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - development@olery.com
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-06-11 00:00:00.000000000 Z
11
+ date: 2014-06-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
- name: opener-build-tools
15
- version_requirements: !ruby/object:Gem::Requirement
16
- requirements:
17
- - - '>='
18
- - !ruby/object:Gem::Version
19
- version: 0.2.7
14
+ name: rake
20
15
  requirement: !ruby/object:Gem::Requirement
21
16
  requirements:
22
- - - '>='
17
+ - - ">="
23
18
  - !ruby/object:Gem::Version
24
- version: 0.2.7
25
- prerelease: false
19
+ version: '0'
26
20
  type: :runtime
27
- - !ruby/object:Gem::Dependency
28
- name: rake
21
+ prerelease: false
29
22
  version_requirements: !ruby/object:Gem::Requirement
30
23
  requirements:
31
- - - '>='
24
+ - - ">="
32
25
  - !ruby/object:Gem::Version
33
26
  version: '0'
27
+ - !ruby/object:Gem::Dependency
28
+ name: nokogiri
34
29
  requirement: !ruby/object:Gem::Requirement
35
30
  requirements:
36
- - - '>='
31
+ - - ">="
37
32
  - !ruby/object:Gem::Version
38
33
  version: '0'
39
- prerelease: false
40
34
  type: :runtime
41
- - !ruby/object:Gem::Dependency
42
- name: nokogiri
35
+ prerelease: false
43
36
  version_requirements: !ruby/object:Gem::Requirement
44
37
  requirements:
45
- - - '>='
38
+ - - ">="
46
39
  - !ruby/object:Gem::Version
47
40
  version: '0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: cliver
48
43
  requirement: !ruby/object:Gem::Requirement
49
44
  requirements:
50
- - - '>='
45
+ - - ">="
51
46
  - !ruby/object:Gem::Version
52
47
  version: '0'
53
- prerelease: false
54
48
  type: :runtime
55
- - !ruby/object:Gem::Dependency
56
- name: rspec
49
+ prerelease: false
57
50
  version_requirements: !ruby/object:Gem::Requirement
58
51
  requirements:
59
- - - '>='
52
+ - - ">="
60
53
  - !ruby/object:Gem::Version
61
54
  version: '0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: rspec
62
57
  requirement: !ruby/object:Gem::Requirement
63
58
  requirements:
64
- - - '>='
59
+ - - "~>"
65
60
  - !ruby/object:Gem::Version
66
- version: '0'
67
- prerelease: false
61
+ version: '3.0'
68
62
  type: :development
69
- - !ruby/object:Gem::Dependency
70
- name: cucumber
63
+ prerelease: false
71
64
  version_requirements: !ruby/object:Gem::Requirement
72
65
  requirements:
73
- - - '>='
66
+ - - "~>"
74
67
  - !ruby/object:Gem::Version
75
- version: '0'
68
+ version: '3.0'
69
+ - !ruby/object:Gem::Dependency
70
+ name: cucumber
76
71
  requirement: !ruby/object:Gem::Requirement
77
72
  requirements:
78
- - - '>='
73
+ - - ">="
79
74
  - !ruby/object:Gem::Version
80
75
  version: '0'
81
- prerelease: false
82
76
  type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - ">="
81
+ - !ruby/object:Gem::Version
82
+ version: '0'
83
83
  description: Base Opinion Detector for english and dutch.
84
- email:
84
+ email:
85
85
  executables:
86
86
  - opinion-detector-base
87
87
  extensions:
@@ -260,7 +260,6 @@ files:
260
260
  - core/vendor/src/svm_light/svm_learn_main.c
261
261
  - core/vendor/src/svm_light/svm_loqo.c
262
262
  - ext/hack/Rakefile
263
- - ext/hack/support.rb
264
263
  - lib/opener/opinion_detectors/base.rb
265
264
  - lib/opener/opinion_detectors/base/version.rb
266
265
  - lib/opener/opinion_detectors/configuration_creator.rb
@@ -272,27 +271,34 @@ files:
272
271
  - lib/opener/opinion_detectors/nl.rb
273
272
  - opener-opinion-detector-base.gemspec
274
273
  - pre_install_requirements.txt
274
+ - task/c.rake
275
+ - task/compile.rake
276
+ - task/python.rake
277
+ - task/requirements.rake
278
+ - task/submodules.rake
279
+ - task/test.rake
275
280
  homepage: http://opener-project.github.com/
276
281
  licenses: []
277
282
  metadata: {}
278
- post_install_message:
283
+ post_install_message:
279
284
  rdoc_options: []
280
285
  require_paths:
281
286
  - lib
282
287
  required_ruby_version: !ruby/object:Gem::Requirement
283
288
  requirements:
284
- - - '>='
289
+ - - ">="
285
290
  - !ruby/object:Gem::Version
286
291
  version: 1.9.2
287
292
  required_rubygems_version: !ruby/object:Gem::Requirement
288
293
  requirements:
289
- - - '>='
294
+ - - ">="
290
295
  - !ruby/object:Gem::Version
291
296
  version: '0'
292
297
  requirements: []
293
- rubyforge_project:
298
+ rubyforge_project:
294
299
  rubygems_version: 2.2.2
295
- signing_key:
300
+ signing_key:
296
301
  specification_version: 4
297
302
  summary: Base Opinion Detector for english and dutch.
298
303
  test_files: []
304
+ has_rdoc:
@@ -1,88 +0,0 @@
1
- require 'opener/build-tools'
2
-
3
- include Opener::BuildTools::Requirements
4
- include Opener::BuildTools::Python
5
- include Opener::BuildTools::Files
6
-
7
- # Directory of the core
8
- CORE_DIR = File.expand_path('../../../core', __FILE__)
9
-
10
- # Directory where packages will be installed to.
11
- PYTHON_SITE_PACKAGES = File.expand_path(
12
- '../../../core/site-packages',
13
- __FILE__
14
- )
15
-
16
- # Directory containing the temporary files.
17
- TMP_DIRECTORY = File.expand_path('../../../tmp', __FILE__)
18
-
19
- # Path to the pip requirements file used to install requirements before
20
- # packaging the Gem.
21
- PRE_BUILD_REQUIREMENTS = File.expand_path(
22
- '../../../pre_build_requirements.txt',
23
- __FILE__
24
- )
25
-
26
- # Path to the pip requirements file used to install requirements upon Gem
27
- # installation.
28
- PRE_INSTALL_REQUIREMENTS = File.expand_path(
29
- '../../../pre_install_requirements.txt',
30
- __FILE__
31
- )
32
-
33
- # Path to the vendor directory for C code.
34
- VENDOR_DIRECTORY = File.expand_path('../../../core/vendor', __FILE__)
35
-
36
- # Path to the directory to install vendored C code into.
37
- VENDOR_BUILD_DIRECTORY = File.expand_path(
38
- '../../../core/vendor/build',
39
- __FILE__
40
- )
41
-
42
- # Path to the directory that contains the source C code to compile.
43
- VENDOR_SRC_DIRECTORY = File.expand_path('../../../core/vendor/src', __FILE__)
44
-
45
-
46
- ##
47
- # Verifies the requirements to install thi Gem.
48
- #
49
- def verify_requirements
50
- require_executable('python')
51
- require_version('python', python_version, '2.6.0')
52
- require_executable('pip')
53
- require_version('pip', pip_version, '1.3.1')
54
- end
55
-
56
- ##
57
- # Compiles C code in the current directory using `make`.
58
- #
59
- # @param [Array] args The arguments to pass to ./configure
60
- #
61
- def compile(*args)
62
- sh "./configure #{args.join(' ')}"
63
- sh 'make'
64
- sh 'make install'
65
- sh 'make distclean'
66
- end
67
-
68
- ##
69
- # Compiles the C code found in src/vendor.
70
- #
71
- def compile_vendored_code
72
- src = VENDOR_SRC_DIRECTORY
73
- build = VENDOR_BUILD_DIRECTORY
74
-
75
- Dir.chdir(File.join(src, "liblbfgs")) do
76
- compile("--prefix=#{build}")
77
- end
78
-
79
- Dir.chdir(File.join(src, "crfsuite")) do
80
- compile("--prefix=#{build}", "--with-liblbfgs=#{build}")
81
- end
82
-
83
- Dir.chdir(File.join(src, "svm_light")) do
84
- sh 'make'
85
- sh 'mv svm_classify svm_learn ../../build/bin'
86
- sh 'make clean'
87
- end
88
- end