stanford-core-nlp 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/stanford-core-nlp.rb +6 -5
- metadata +4 -4
data/lib/stanford-core-nlp.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
module StanfordCoreNLP
|
2
2
|
|
3
|
-
VERSION = '0.2.
|
3
|
+
VERSION = '0.2.1'
|
4
4
|
|
5
5
|
require 'stanford-core-nlp/jar_loader'
|
6
6
|
require 'stanford-core-nlp/java_wrapper'
|
@@ -135,15 +135,16 @@ module StanfordCoreNLP
|
|
135
135
|
break if found
|
136
136
|
end
|
137
137
|
next unless found
|
138
|
+
|
138
139
|
f = self.model_path + v
|
139
|
-
|
140
|
+
|
140
141
|
unless File.readable?(f)
|
141
142
|
raise "Model file #{f} could not be found. " +
|
142
143
|
"You may need to download this file manually "+
|
143
144
|
" and/or set paths properly."
|
144
|
-
else
|
145
|
-
properties[k] = f
|
146
145
|
end
|
146
|
+
|
147
|
+
properties[k] = f
|
147
148
|
end
|
148
149
|
|
149
150
|
properties['annotators'] =
|
@@ -258,4 +259,4 @@ module StanfordCoreNLP
|
|
258
259
|
Rjb::import("#{base}#{klass}"))
|
259
260
|
end
|
260
261
|
|
261
|
-
end
|
262
|
+
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: stanford-core-nlp
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.1
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,11 +9,11 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-03-
|
12
|
+
date: 2012-03-06 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rjb
|
16
|
-
requirement: &
|
16
|
+
requirement: &70138662664620 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ! '>='
|
@@ -21,7 +21,7 @@ dependencies:
|
|
21
21
|
version: '0'
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *70138662664620
|
25
25
|
description: ! " High-level Ruby bindings to the Stanford CoreNLP package, a set natural
|
26
26
|
language processing \ntools that provides tokenization, part-of-speech tagging and
|
27
27
|
parsing for several languages, as well as named entity \nrecognition and coreference
|