stanford-core-nlp 0.4.1 → 0.4.2
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/stanford-core-nlp.rb +2 -2
- metadata +19 -21
- data/bin/Stanford.java +0 -13
data/lib/stanford-core-nlp.rb
CHANGED
@@ -2,7 +2,7 @@ require 'stanford-core-nlp/config'
|
|
2
2
|
|
3
3
|
module StanfordCoreNLP
|
4
4
|
|
5
|
-
VERSION = '0.4.
|
5
|
+
VERSION = '0.4.2'
|
6
6
|
|
7
7
|
require 'bind-it'
|
8
8
|
extend BindIt::Binding
|
@@ -13,7 +13,7 @@ module StanfordCoreNLP
|
|
13
13
|
|
14
14
|
# The default path for the JAR files
|
15
15
|
# is the gem's bin folder.
|
16
|
-
self.jar_path = File.dirname(__FILE__).gsub(/\/lib\z/, '') + '/
|
16
|
+
self.jar_path = File.dirname(__FILE__).gsub(/\/lib\z/, '') + '/bin/'
|
17
17
|
|
18
18
|
# Default namespace is the Stanford pipeline namespace.
|
19
19
|
self.default_namespace = 'edu.stanford.nlp.pipeline'
|
metadata
CHANGED
@@ -1,73 +1,71 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: stanford-core-nlp
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
|
5
|
-
|
4
|
+
version: 0.4.2
|
5
|
+
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- Louis Mullie
|
9
|
-
autorequire:
|
9
|
+
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-12-
|
12
|
+
date: 2012-12-20 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: bind-it
|
16
|
-
|
16
|
+
requirement: !ruby/object:Gem::Requirement
|
17
|
+
none: false
|
17
18
|
requirements:
|
18
19
|
- - ! '>='
|
19
20
|
- !ruby/object:Gem::Version
|
20
21
|
version: '0'
|
22
|
+
type: :runtime
|
23
|
+
prerelease: false
|
24
|
+
version_requirements: !ruby/object:Gem::Requirement
|
21
25
|
none: false
|
22
|
-
requirement: !ruby/object:Gem::Requirement
|
23
26
|
requirements:
|
24
27
|
- - ! '>='
|
25
28
|
- !ruby/object:Gem::Version
|
26
29
|
version: '0'
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
\ language processing \ntools that provides tokenization, part-of-speech tagging\
|
32
|
-
\ and parsing for several languages, as well as named entity \nrecognition and coreference\
|
33
|
-
\ resolution for English. "
|
30
|
+
description: ! " High-level Ruby bindings to the Stanford CoreNLP package, a set natural
|
31
|
+
language processing \ntools that provides tokenization, part-of-speech tagging and
|
32
|
+
parsing for several languages, as well as named entity \nrecognition and coreference
|
33
|
+
resolution for English. "
|
34
34
|
email:
|
35
35
|
- louis.mullie@gmail.com
|
36
36
|
executables: []
|
37
37
|
extensions: []
|
38
38
|
extra_rdoc_files: []
|
39
39
|
files:
|
40
|
-
- lib/stanford-core-nlp.rb
|
41
40
|
- lib/stanford-core-nlp/bridge.rb
|
42
41
|
- lib/stanford-core-nlp/config.rb
|
42
|
+
- lib/stanford-core-nlp.rb
|
43
43
|
- bin/AnnotationBridge.java
|
44
44
|
- bin/bridge.jar
|
45
|
-
- bin/Stanford.java
|
46
45
|
- README.md
|
47
46
|
- LICENSE
|
48
47
|
homepage: https://github.com/louismullie/stanford-core-nlp
|
49
48
|
licenses: []
|
50
|
-
post_install_message:
|
49
|
+
post_install_message:
|
51
50
|
rdoc_options: []
|
52
51
|
require_paths:
|
53
52
|
- lib
|
54
53
|
required_ruby_version: !ruby/object:Gem::Requirement
|
54
|
+
none: false
|
55
55
|
requirements:
|
56
56
|
- - ! '>='
|
57
57
|
- !ruby/object:Gem::Version
|
58
58
|
version: '0'
|
59
|
-
none: false
|
60
59
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
60
|
+
none: false
|
61
61
|
requirements:
|
62
62
|
- - ! '>='
|
63
63
|
- !ruby/object:Gem::Version
|
64
64
|
version: '0'
|
65
|
-
none: false
|
66
65
|
requirements: []
|
67
|
-
rubyforge_project:
|
66
|
+
rubyforge_project:
|
68
67
|
rubygems_version: 1.8.24
|
69
|
-
signing_key:
|
68
|
+
signing_key:
|
70
69
|
specification_version: 3
|
71
70
|
summary: Ruby bindings to the Stanford Core NLP tools.
|
72
71
|
test_files: []
|
73
|
-
...
|
data/bin/Stanford.java
DELETED
@@ -1,13 +0,0 @@
|
|
1
|
-
import edu.stanford.nlp.ling.CoreAnnotation;
|
2
|
-
import edu.stanford.nlp.ling.CoreLabel;
|
3
|
-
|
4
|
-
public class Stanford {
|
5
|
-
|
6
|
-
public static Object getAnnotation(CoreLabel entity, String name) throws ClassNotFoundException{
|
7
|
-
Class<CoreAnnotation> klass;
|
8
|
-
klass = (Class<CoreAnnotation>) Class.forName(name);
|
9
|
-
Object object = entity.get(klass);
|
10
|
-
return object;
|
11
|
-
}
|
12
|
-
|
13
|
-
}
|