opener-pos-tagger-base 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 (26) hide show
  1. checksums.yaml +4 -4
  2. data/core/pos-tagger_open-nlp.py +0 -1
  3. data/core/site-packages/{pre_build/VUKafParserPy-1.0-py2.7.egg-info → pre_install/VUKafParserPy-1.1-py2.7.egg-info}/PKG-INFO +1 -1
  4. data/core/site-packages/{pre_build/VUKafParserPy-1.0-py2.7.egg-info → pre_install/VUKafParserPy-1.1-py2.7.egg-info}/SOURCES.txt +0 -0
  5. data/core/site-packages/{pre_build/VUKafParserPy-1.0-py2.7.egg-info → pre_install/VUKafParserPy-1.1-py2.7.egg-info}/dependency_links.txt +0 -0
  6. data/core/site-packages/{pre_build/VUKafParserPy-1.0-py2.7.egg-info → pre_install/VUKafParserPy-1.1-py2.7.egg-info}/installed-files.txt +0 -0
  7. data/core/site-packages/{pre_build/VUKafParserPy-1.0-py2.7.egg-info → pre_install/VUKafParserPy-1.1-py2.7.egg-info}/top_level.txt +0 -0
  8. data/core/site-packages/{pre_build → pre_install}/VUKafParserPy/KafDataObjectsMod.py +0 -0
  9. data/core/site-packages/{pre_build → pre_install}/VUKafParserPy/KafDataObjectsMod.pyc +0 -0
  10. data/core/site-packages/{pre_build → pre_install}/VUKafParserPy/KafParserMod.py +0 -0
  11. data/core/site-packages/{pre_build → pre_install}/VUKafParserPy/KafParserMod.pyc +0 -0
  12. data/core/site-packages/{pre_build → pre_install}/VUKafParserPy/__init__.py +0 -0
  13. data/core/site-packages/pre_install/VUKafParserPy/__init__.pyc +0 -0
  14. data/core/token_matcher.pyo +0 -0
  15. data/ext/hack/Rakefile +8 -0
  16. data/lib/opener/pos_taggers/base/version.rb +1 -1
  17. data/opener-pos-tagger-base.gemspec +5 -3
  18. data/pre_install_requirements.txt +1 -0
  19. data/task/compile.rake +2 -0
  20. data/task/python.rake +11 -0
  21. data/task/requirements.rake +7 -0
  22. data/task/test.rake +4 -0
  23. metadata +30 -24
  24. data/core/site-packages/pre_build/VUKafParserPy/__init__.pyc +0 -0
  25. data/ext/hack/support.rb +0 -38
  26. data/pre_build_requirements.txt +0 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e1d01b280c3f2369e20c811fa11a42150b41cc16
4
- data.tar.gz: 7639fb3ce4fb64641047659339b500157940087c
3
+ metadata.gz: 2d9cd6bcabeaa0e04bbdbf1b7eb57f8b64bfd9f7
4
+ data.tar.gz: 424f36de628ec889a580f21df78585d0fba6d0f5
5
5
  SHA512:
6
- metadata.gz: 31dd9808cc4b3ce95de10c8e95c456af963a2b93cc1bbef60e9917716b9de830ce3b749c28b63017ab7ce90393172cf499563400fbb62873a39eb0be2d0e2f1a
7
- data.tar.gz: 7b9ab3549277fc1c93b09b60eae00f9b56894dee3565550f9eee7d82209316d770083df32085885282da18a3c12475b1e4c897f9c8fd928f2c144841bea88e3d
6
+ metadata.gz: 3a9133ed097fa7223a6adbd12ce2a29fa5986fdd0c9f1e6df97172477407b7c30bd361ae5c64627d41c0d1ebdf650d4011afb7d6a8f4c3b337bd154512505134
7
+ data.tar.gz: 28f32e1691960c402f5bfb522961aabcbac766f93bf3caa6c2697a1afaa6723947450c94fd7615f66d7a26e37702a97c5193a966de6ebfaa08f7054cc0381be7
@@ -19,7 +19,6 @@ model_folder = os.path.join(opennlp_folder, 'models')
19
19
 
20
20
  # This updates the load path to ensure that the local site-packages directory
21
21
  # can be used to load packages (e.g. a locally installed copy of lxml).
22
- sys.path.append(os.path.join(this_folder, 'site-packages/pre_build'))
23
22
  sys.path.append(os.path.join(this_folder, 'site-packages/pre_install'))
24
23
 
25
24
  # Config for Dutch
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 1.0
2
2
  Name: VUKafParserPy
3
- Version: 1.0
3
+ Version: 1.1
4
4
  Summary: Library in python to parse kaf files
5
5
  Home-page: UNKNOWN
6
6
  Author: Ruben Izquierdo
Binary file
@@ -0,0 +1,8 @@
1
+ import File.expand_path('../../../task/requirements.rake', __FILE__)
2
+ import File.expand_path('../../../task/python.rake', __FILE__)
3
+
4
+ task :default => :requirements do
5
+ Dir.chdir(File.expand_path('../../../', __FILE__)) do
6
+ Rake::Task['core/site-packages/pre_install'].invoke
7
+ end
8
+ end
@@ -1,7 +1,7 @@
1
1
  module Opener
2
2
  module POSTaggers
3
3
  class Base
4
- VERSION = '2.0.0'
4
+ VERSION = '2.0.1'
5
5
  end # Base
6
6
  end # POSTaggers
7
7
  end # Opener
@@ -7,6 +7,7 @@ Gem::Specification.new do |gem|
7
7
  gem.summary = 'POS tagger for Dutch and German using OpenNLP'
8
8
  gem.description = gem.summary
9
9
  gem.homepage = 'http://opener-project.github.com/'
10
+ gem.extensions = ['ext/hack/Rakefile']
10
11
 
11
12
  gem.required_ruby_version = '>= 1.9.2'
12
13
 
@@ -16,14 +17,15 @@ Gem::Specification.new do |gem|
16
17
  'lib/**/*',
17
18
  '*.gemspec',
18
19
  '*_requirements.txt',
19
- 'README.md'
20
+ 'README.md',
21
+ 'task/*'
20
22
  ]).select { |file| File.file?(file) }
21
23
 
22
24
  gem.executables = Dir.glob('bin/*').map { |file| File.basename(file) }
23
25
 
24
- gem.add_dependency 'opener-build-tools', ['>= 0.2.7']
25
26
  gem.add_dependency 'rake'
27
+ gem.add_dependency 'cliver'
26
28
 
27
- gem.add_development_dependency 'rspec'
29
+ gem.add_development_dependency 'rspec', '~> 3.0'
28
30
  gem.add_development_dependency 'cucumber'
29
31
  end
@@ -0,0 +1 @@
1
+ https://github.com/opener-project/VU-kaf-parser/archive/master.zip#egg=VUKafParserPy
@@ -0,0 +1,2 @@
1
+ desc 'Verifies requirements and compiles the core'
2
+ task :compile => ['requirements', '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,7 @@
1
+ desc 'Verifies the requirements'
2
+ task :requirements do
3
+ require 'cliver'
4
+
5
+ Cliver.detect!('python', '~> 2.6')
6
+ Cliver.detect!('pip', '~> 1.3')
7
+ end
@@ -0,0 +1,4 @@
1
+ desc 'Runs the tests'
2
+ task :test => :compile do
3
+ sh('cucumber features')
4
+ end
metadata CHANGED
@@ -1,31 +1,31 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: opener-pos-tagger-base
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.0
4
+ version: 2.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - development@olery.com
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-05-20 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
14
+ name: rake
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: 0.2.7
19
+ version: '0'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - ">="
25
25
  - !ruby/object:Gem::Version
26
- version: 0.2.7
26
+ version: '0'
27
27
  - !ruby/object:Gem::Dependency
28
- name: rake
28
+ name: cliver
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - ">="
@@ -42,16 +42,16 @@ dependencies:
42
42
  name: rspec
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - ">="
45
+ - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: '0'
47
+ version: '3.0'
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - ">="
52
+ - - "~>"
53
53
  - !ruby/object:Gem::Version
54
- version: '0'
54
+ version: '3.0'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: cucumber
57
57
  requirement: !ruby/object:Gem::Requirement
@@ -70,7 +70,8 @@ description: POS tagger for Dutch and German using OpenNLP
70
70
  email:
71
71
  executables:
72
72
  - pos-tagger-base
73
- extensions: []
73
+ extensions:
74
+ - ext/hack/Rakefile
74
75
  extra_rdoc_files: []
75
76
  files:
76
77
  - README.md
@@ -88,23 +89,28 @@ files:
88
89
  - core/opennlp/models/nl-pos-maxent.bin
89
90
  - core/opennlp/models/nl-pos-perceptron.bin
90
91
  - core/pos-tagger_open-nlp.py
91
- - core/site-packages/pre_build/VUKafParserPy-1.0-py2.7.egg-info/PKG-INFO
92
- - core/site-packages/pre_build/VUKafParserPy-1.0-py2.7.egg-info/SOURCES.txt
93
- - core/site-packages/pre_build/VUKafParserPy-1.0-py2.7.egg-info/dependency_links.txt
94
- - core/site-packages/pre_build/VUKafParserPy-1.0-py2.7.egg-info/installed-files.txt
95
- - core/site-packages/pre_build/VUKafParserPy-1.0-py2.7.egg-info/top_level.txt
96
- - core/site-packages/pre_build/VUKafParserPy/KafDataObjectsMod.py
97
- - core/site-packages/pre_build/VUKafParserPy/KafDataObjectsMod.pyc
98
- - core/site-packages/pre_build/VUKafParserPy/KafParserMod.py
99
- - core/site-packages/pre_build/VUKafParserPy/KafParserMod.pyc
100
- - core/site-packages/pre_build/VUKafParserPy/__init__.py
101
- - core/site-packages/pre_build/VUKafParserPy/__init__.pyc
92
+ - core/site-packages/pre_install/VUKafParserPy-1.1-py2.7.egg-info/PKG-INFO
93
+ - core/site-packages/pre_install/VUKafParserPy-1.1-py2.7.egg-info/SOURCES.txt
94
+ - core/site-packages/pre_install/VUKafParserPy-1.1-py2.7.egg-info/dependency_links.txt
95
+ - core/site-packages/pre_install/VUKafParserPy-1.1-py2.7.egg-info/installed-files.txt
96
+ - core/site-packages/pre_install/VUKafParserPy-1.1-py2.7.egg-info/top_level.txt
97
+ - core/site-packages/pre_install/VUKafParserPy/KafDataObjectsMod.py
98
+ - core/site-packages/pre_install/VUKafParserPy/KafDataObjectsMod.pyc
99
+ - core/site-packages/pre_install/VUKafParserPy/KafParserMod.py
100
+ - core/site-packages/pre_install/VUKafParserPy/KafParserMod.pyc
101
+ - core/site-packages/pre_install/VUKafParserPy/__init__.py
102
+ - core/site-packages/pre_install/VUKafParserPy/__init__.pyc
102
103
  - core/token_matcher.py
103
- - ext/hack/support.rb
104
+ - core/token_matcher.pyo
105
+ - ext/hack/Rakefile
104
106
  - lib/opener/pos_taggers/base.rb
105
107
  - lib/opener/pos_taggers/base/version.rb
106
108
  - opener-pos-tagger-base.gemspec
107
- - pre_build_requirements.txt
109
+ - pre_install_requirements.txt
110
+ - task/compile.rake
111
+ - task/python.rake
112
+ - task/requirements.rake
113
+ - task/test.rake
108
114
  homepage: http://opener-project.github.com/
109
115
  licenses: []
110
116
  metadata: {}
@@ -1,38 +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 where packages will be installed to.
8
- PYTHON_SITE_PACKAGES = File.expand_path(
9
- '../../../core/site-packages',
10
- __FILE__
11
- )
12
-
13
- # Directory containing the temporary files.
14
- TMP_DIRECTORY = File.expand_path('../../../tmp', __FILE__)
15
-
16
- # Path to the pip requirements file used to install requirements before
17
- # packaging the Gem.
18
- PRE_BUILD_REQUIREMENTS = File.expand_path(
19
- '../../../pre_build_requirements.txt',
20
- __FILE__
21
- )
22
-
23
- # Path to the pip requirements file used to install requirements upon Gem
24
- # installation.
25
- PRE_INSTALL_REQUIREMENTS = File.expand_path(
26
- '../../../pre_install_requirements.txt',
27
- __FILE__
28
- )
29
-
30
- ##
31
- # Verifies the requirements to install thi Gem.
32
- #
33
- def verify_requirements
34
- require_executable('python')
35
- require_version('python', python_version, '2.6.0')
36
- require_executable('pip')
37
- require_version('pip', pip_version, '1.3.1')
38
- end
@@ -1 +0,0 @@
1
- git+ssh://git@github.com/opener-project/VU-kaf-parser.git#egg=VUKafParserPy