rstt 0.9.3 → 0.9.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +2 -2
- data/{LICENSE.txt → License.txt} +0 -0
- data/README.md +2 -6
- data/bin/rstt +4 -3
- data/lib/rstt/tt_settings.rb +0 -2
- data/lib/rstt/version.rb +1 -1
- data/lib/tasks/{configure.rb → configure.thor} +1 -1
- data/rstt.gemspec +2 -0
- data/spec/rstt_preprocessing_spec.rb +1 -0
- metadata +86 -41
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 7695849f04db194b6e19345ad9d2f3408603f708
|
4
|
+
data.tar.gz: e170da282e0c1ed8b21faaf325115ca9b56fe1bb
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 618a9ce9b3ea6512b5af5bb6d1ac8cd465c1d3fe610d4a799b206c81fb42f30b7f24877f6b98a3b68048b7e811d205ba29a2b357c9a436a7ba86e11c7bf522de
|
7
|
+
data.tar.gz: 4315ce4797d351cb1ea4b8c856574cd0a3d402fc8b7a7586a5066a881f0a9edc7204f48d3c850104fddfd037d63b40261c0102d709cb11ee8064e5df9d89f845
|
data/.gitignore
CHANGED
data/{LICENSE.txt → License.txt}
RENAMED
File without changes
|
data/README.md
CHANGED
@@ -15,11 +15,7 @@ Before you install the treetagger-ruby package please ensure you have downloaded
|
|
15
15
|
(And pls, respect his terms of license)
|
16
16
|
|
17
17
|
gem install rstt
|
18
|
-
|
19
|
-
|
20
|
-
or:
|
21
|
-
|
22
|
-
rstt -i /path/to/your/TreeTagger/
|
18
|
+
rstt -c /path/to/your/TreeTagger/
|
23
19
|
|
24
20
|
USAGE
|
25
21
|
-----
|
@@ -52,4 +48,4 @@ installed languages are stored in `Rstt::LANGUAGES` (cause it could be different
|
|
52
48
|
LICENSE
|
53
49
|
-------
|
54
50
|
|
55
|
-
see License.txt
|
51
|
+
see License.txt
|
data/bin/rstt
CHANGED
@@ -21,14 +21,14 @@ opts = Slop.parse do
|
|
21
21
|
both:
|
22
22
|
rstt -t -p -l <language> -i <\"input text\">
|
23
23
|
rstt -t -p -l <language> -f <path/to/file>\n"
|
24
|
-
|
24
|
+
|
25
25
|
on :h, :help, "print help message" do
|
26
26
|
puts help
|
27
27
|
end
|
28
28
|
|
29
29
|
on :c, :configure=, "configure Rstt by setting TreeTagger path and installed languages [ARG path]", optional: false do
|
30
30
|
print "initilizing ..\n"
|
31
|
-
run = File.join(File.dirname(__FILE__), '..', 'lib','tasks','configure.
|
31
|
+
run = File.join(File.dirname(__FILE__), '..', 'lib','tasks','configure.thor')
|
32
32
|
print `#{run} init #{self[:configure]}`
|
33
33
|
end
|
34
34
|
|
@@ -61,7 +61,6 @@ if opts.f? && !opts[:f].nil?
|
|
61
61
|
else
|
62
62
|
puts "not an regular file"
|
63
63
|
end
|
64
|
-
|
65
64
|
# get STDIN
|
66
65
|
elsif opts.i? && !opts[:i].nil?
|
67
66
|
@input = opts[:i]
|
@@ -92,3 +91,5 @@ if opts.t?
|
|
92
91
|
p tag
|
93
92
|
end
|
94
93
|
end
|
94
|
+
|
95
|
+
|
data/lib/rstt/tt_settings.rb
CHANGED
@@ -1,4 +1,2 @@
|
|
1
1
|
module Rstt
|
2
|
-
TT_HOME = "/Users/le_fnord/sandbox/work/NLP/TreeTagger"
|
3
|
-
LANGUAGES = {"dutch"=>{:utf8=>false}, "english"=>{:utf8=>false}, "estonian"=>{:utf8=>false}, "french"=>{:utf8=>true}, "german"=>{:utf8=>true}, "italian"=>{:utf8=>false}, "latin"=>{:utf8=>false}, "spanish"=>{:utf8=>true}, "swahili"=>{:utf8=>false}}
|
4
2
|
end
|
data/lib/rstt/version.rb
CHANGED
data/rstt.gemspec
CHANGED
@@ -23,7 +23,9 @@ Gem::Specification.new do |s|
|
|
23
23
|
s.add_development_dependency "syntax"
|
24
24
|
|
25
25
|
s.add_runtime_dependency "thor"
|
26
|
+
s.add_runtime_dependency "awesome_print"
|
26
27
|
s.add_runtime_dependency "active_support"
|
28
|
+
s.add_runtime_dependency "i18n"
|
27
29
|
s.add_runtime_dependency "celluloid"
|
28
30
|
s.add_runtime_dependency "slop"
|
29
31
|
end
|
metadata
CHANGED
@@ -1,93 +1,141 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rstt
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.9.
|
5
|
-
prerelease:
|
4
|
+
version: 0.9.4
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- LeFnord
|
9
8
|
autorequire:
|
10
9
|
bindir: bin
|
11
10
|
cert_chain: []
|
12
|
-
date:
|
11
|
+
date: 2013-08-12 00:00:00.000000000 Z
|
13
12
|
dependencies:
|
14
13
|
- !ruby/object:Gem::Dependency
|
15
14
|
name: rspec
|
16
|
-
requirement:
|
17
|
-
none: false
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
18
16
|
requirements:
|
19
|
-
- -
|
17
|
+
- - '>='
|
20
18
|
- !ruby/object:Gem::Version
|
21
19
|
version: '0'
|
22
20
|
type: :development
|
23
21
|
prerelease: false
|
24
|
-
version_requirements:
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - '>='
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '0'
|
25
27
|
- !ruby/object:Gem::Dependency
|
26
28
|
name: yard
|
27
|
-
requirement:
|
28
|
-
none: false
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
29
30
|
requirements:
|
30
|
-
- -
|
31
|
+
- - '>='
|
31
32
|
- !ruby/object:Gem::Version
|
32
33
|
version: '0'
|
33
34
|
type: :development
|
34
35
|
prerelease: false
|
35
|
-
version_requirements:
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - '>='
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '0'
|
36
41
|
- !ruby/object:Gem::Dependency
|
37
42
|
name: syntax
|
38
|
-
requirement:
|
39
|
-
none: false
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
40
44
|
requirements:
|
41
|
-
- -
|
45
|
+
- - '>='
|
42
46
|
- !ruby/object:Gem::Version
|
43
47
|
version: '0'
|
44
48
|
type: :development
|
45
49
|
prerelease: false
|
46
|
-
version_requirements:
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - '>='
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0'
|
47
55
|
- !ruby/object:Gem::Dependency
|
48
56
|
name: thor
|
49
|
-
requirement:
|
50
|
-
none: false
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
51
58
|
requirements:
|
52
|
-
- -
|
59
|
+
- - '>='
|
53
60
|
- !ruby/object:Gem::Version
|
54
61
|
version: '0'
|
55
62
|
type: :runtime
|
56
63
|
prerelease: false
|
57
|
-
version_requirements:
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - '>='
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '0'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: awesome_print
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - '>='
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '0'
|
76
|
+
type: :runtime
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - '>='
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '0'
|
58
83
|
- !ruby/object:Gem::Dependency
|
59
84
|
name: active_support
|
60
|
-
requirement:
|
61
|
-
none: false
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
62
86
|
requirements:
|
63
|
-
- -
|
87
|
+
- - '>='
|
64
88
|
- !ruby/object:Gem::Version
|
65
89
|
version: '0'
|
66
90
|
type: :runtime
|
67
91
|
prerelease: false
|
68
|
-
version_requirements:
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - '>='
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: '0'
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: i18n
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - '>='
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: '0'
|
104
|
+
type: :runtime
|
105
|
+
prerelease: false
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - '>='
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: '0'
|
69
111
|
- !ruby/object:Gem::Dependency
|
70
112
|
name: celluloid
|
71
|
-
requirement:
|
72
|
-
none: false
|
113
|
+
requirement: !ruby/object:Gem::Requirement
|
73
114
|
requirements:
|
74
|
-
- -
|
115
|
+
- - '>='
|
75
116
|
- !ruby/object:Gem::Version
|
76
117
|
version: '0'
|
77
118
|
type: :runtime
|
78
119
|
prerelease: false
|
79
|
-
version_requirements:
|
120
|
+
version_requirements: !ruby/object:Gem::Requirement
|
121
|
+
requirements:
|
122
|
+
- - '>='
|
123
|
+
- !ruby/object:Gem::Version
|
124
|
+
version: '0'
|
80
125
|
- !ruby/object:Gem::Dependency
|
81
126
|
name: slop
|
82
|
-
requirement:
|
83
|
-
none: false
|
127
|
+
requirement: !ruby/object:Gem::Requirement
|
84
128
|
requirements:
|
85
|
-
- -
|
129
|
+
- - '>='
|
86
130
|
- !ruby/object:Gem::Version
|
87
131
|
version: '0'
|
88
132
|
type: :runtime
|
89
133
|
prerelease: false
|
90
|
-
version_requirements:
|
134
|
+
version_requirements: !ruby/object:Gem::Requirement
|
135
|
+
requirements:
|
136
|
+
- - '>='
|
137
|
+
- !ruby/object:Gem::Version
|
138
|
+
version: '0'
|
91
139
|
description: another ruby wrapper for Stuttgarter Tree Tagger
|
92
140
|
email:
|
93
141
|
- pscholz.le@gmail.com
|
@@ -96,12 +144,11 @@ executables:
|
|
96
144
|
extensions: []
|
97
145
|
extra_rdoc_files: []
|
98
146
|
files:
|
99
|
-
- .DS_Store
|
100
147
|
- .gitignore
|
101
148
|
- .rspec
|
102
149
|
- Gemfile
|
103
150
|
- Gemfile.lock
|
104
|
-
-
|
151
|
+
- License.txt
|
105
152
|
- README.md
|
106
153
|
- Rakefile
|
107
154
|
- bin/rstt
|
@@ -109,37 +156,35 @@ files:
|
|
109
156
|
- lib/rstt/preprocess.rb
|
110
157
|
- lib/rstt/tt_settings.rb
|
111
158
|
- lib/rstt/version.rb
|
112
|
-
- lib/tasks/configure.
|
159
|
+
- lib/tasks/configure.thor
|
113
160
|
- rstt.gemspec
|
114
161
|
- spec/rstt_preprocessing_spec.rb
|
115
162
|
- spec/rstt_spec.rb
|
116
163
|
- spec/spec_helper.rb
|
117
164
|
- tmp/tmp.html
|
118
|
-
- todos.task
|
119
165
|
homepage: ''
|
120
166
|
licenses: []
|
167
|
+
metadata: {}
|
121
168
|
post_install_message:
|
122
169
|
rdoc_options: []
|
123
170
|
require_paths:
|
124
171
|
- lib
|
125
172
|
- bin
|
126
173
|
required_ruby_version: !ruby/object:Gem::Requirement
|
127
|
-
none: false
|
128
174
|
requirements:
|
129
|
-
- -
|
175
|
+
- - '>='
|
130
176
|
- !ruby/object:Gem::Version
|
131
177
|
version: '0'
|
132
178
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
133
|
-
none: false
|
134
179
|
requirements:
|
135
|
-
- -
|
180
|
+
- - '>='
|
136
181
|
- !ruby/object:Gem::Version
|
137
182
|
version: '0'
|
138
183
|
requirements: []
|
139
184
|
rubyforge_project: rstt
|
140
|
-
rubygems_version:
|
185
|
+
rubygems_version: 2.0.3
|
141
186
|
signing_key:
|
142
|
-
specification_version:
|
187
|
+
specification_version: 4
|
143
188
|
summary: another ruby wrapper for Stuttgarter Tree Tagger
|
144
189
|
test_files:
|
145
190
|
- spec/rstt_preprocessing_spec.rb
|