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.
- checksums.yaml +4 -4
- data/core/pos-tagger_open-nlp.py +0 -1
- 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
- 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
- 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
- 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
- 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
- data/core/site-packages/{pre_build → pre_install}/VUKafParserPy/KafDataObjectsMod.py +0 -0
- data/core/site-packages/{pre_build → pre_install}/VUKafParserPy/KafDataObjectsMod.pyc +0 -0
- data/core/site-packages/{pre_build → pre_install}/VUKafParserPy/KafParserMod.py +0 -0
- data/core/site-packages/{pre_build → pre_install}/VUKafParserPy/KafParserMod.pyc +0 -0
- data/core/site-packages/{pre_build → pre_install}/VUKafParserPy/__init__.py +0 -0
- data/core/site-packages/pre_install/VUKafParserPy/__init__.pyc +0 -0
- data/core/token_matcher.pyo +0 -0
- data/ext/hack/Rakefile +8 -0
- data/lib/opener/pos_taggers/base/version.rb +1 -1
- data/opener-pos-tagger-base.gemspec +5 -3
- data/pre_install_requirements.txt +1 -0
- data/task/compile.rake +2 -0
- data/task/python.rake +11 -0
- data/task/requirements.rake +7 -0
- data/task/test.rake +4 -0
- metadata +30 -24
- data/core/site-packages/pre_build/VUKafParserPy/__init__.pyc +0 -0
- data/ext/hack/support.rb +0 -38
- data/pre_build_requirements.txt +0 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2d9cd6bcabeaa0e04bbdbf1b7eb57f8b64bfd9f7
|
4
|
+
data.tar.gz: 424f36de628ec889a580f21df78585d0fba6d0f5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3a9133ed097fa7223a6adbd12ce2a29fa5986fdd0c9f1e6df97172477407b7c30bd361ae5c64627d41c0d1ebdf650d4011afb7d6a8f4c3b337bd154512505134
|
7
|
+
data.tar.gz: 28f32e1691960c402f5bfb522961aabcbac766f93bf3caa6c2697a1afaa6723947450c94fd7615f66d7a26e37702a97c5193a966de6ebfaa08f7054cc0381be7
|
data/core/pos-tagger_open-nlp.py
CHANGED
@@ -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
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
Binary file
|
File without changes
|
Binary file
|
File without changes
|
Binary file
|
Binary file
|
data/ext/hack/Rakefile
ADDED
@@ -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
|
@@ -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
|
data/task/compile.rake
ADDED
data/task/python.rake
ADDED
@@ -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
|
data/task/test.rake
ADDED
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.
|
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-
|
11
|
+
date: 2014-06-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
|
-
name:
|
14
|
+
name: rake
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 0
|
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
|
26
|
+
version: '0'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
|
-
name:
|
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/
|
92
|
-
- core/site-packages/
|
93
|
-
- core/site-packages/
|
94
|
-
- core/site-packages/
|
95
|
-
- core/site-packages/
|
96
|
-
- core/site-packages/
|
97
|
-
- core/site-packages/
|
98
|
-
- core/site-packages/
|
99
|
-
- core/site-packages/
|
100
|
-
- core/site-packages/
|
101
|
-
- core/site-packages/
|
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
|
-
-
|
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
|
-
-
|
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: {}
|
Binary file
|
data/ext/hack/support.rb
DELETED
@@ -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
|
data/pre_build_requirements.txt
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
git+ssh://git@github.com/opener-project/VU-kaf-parser.git#egg=VUKafParserPy
|