stanford-core-nlp 0.4.2 → 0.4.3

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  **About**
2
2
 
3
- This gem provides high-level Ruby bindings to the [Stanford Core NLP package](http://nlp.stanford.edu/software/corenlp.shtml), a set natural language processing tools for tokenization, sentence segmentation, part-of-speech tagging, lemmatization, and parsing of English, French and German. The package also provides named entity recognition and coreference resolution for English. This gem is compatible with JRuby 1.6.4 and above, as well as Ruby 1.9.2 and 1.9.3 (through Rjb).
3
+ This gem provides high-level Ruby bindings to the [Stanford Core NLP package](http://nlp.stanford.edu/software/corenlp.shtml), a set natural language processing tools for tokenization, sentence segmentation, part-of-speech tagging, lemmatization, and parsing of English, French and German. The package also provides named entity recognition and coreference resolution for English. This gem is compatible with JRuby 1.7.1 and above, as well as Ruby 1.9.2 and 1.9.3 (through Rjb). Please note that from 0.4.3 on, JRuby 1.6.7.2 is no longer supported.
4
4
 
5
5
  This gem only provides a thin wrapper over the Stanford Core NLP API. If you are looking for a Ruby natural language processing framework, have a look at [Treat](https://github.com/louismullie/treat).
6
6
 
@@ -2,7 +2,7 @@ require 'stanford-core-nlp/config'
2
2
 
3
3
  module StanfordCoreNLP
4
4
 
5
- VERSION = '0.4.2'
5
+ VERSION = '0.4.3'
6
6
 
7
7
  require 'bind-it'
8
8
  extend BindIt::Binding
@@ -32,6 +32,7 @@ module StanfordCoreNLP
32
32
  'stanford-parser.jar',
33
33
  'stanford-corenlp.jar',
34
34
  'stanford-segmenter.jar',
35
+ 'jollyday.jar',
35
36
  'bridge.jar'
36
37
  ]
37
38
 
@@ -87,7 +88,6 @@ module StanfordCoreNLP
87
88
  folder = Config::ModelFolders[n]
88
89
  if models.is_a?(Hash)
89
90
  n = n.to_s
90
- n += '.model' if n == 'ner'
91
91
  models.each do |m, file|
92
92
  self.model_files["#{n}.#{m}"] = folder + file
93
93
  end
@@ -159,6 +159,18 @@ module StanfordCoreNLP
159
159
  # Otherswise throws java.lang.NullPointerException: null.
160
160
  properties['parse.buildgraphs'] = 'false'
161
161
  end
162
+
163
+ # Bug fix for NER system. Otherwise throws:
164
+ # Error initializing binder 1 at edu.stanford.
165
+ # nlp.time.Options.<init>(Options.java:88)
166
+ properties['sutime.binders'] = '0'
167
+
168
+ # Manually include SUTime models.
169
+ if annotators.include?(:ner)
170
+ properties['sutime.rules'] =
171
+ self.jar_path + 'sutime/defs.sutime.txt, ' +
172
+ self.jar_path + 'sutime/english.sutime.txt'
173
+ end
162
174
 
163
175
  # Hack for Rjb compatibility.
164
176
  const_get(:CoreNLP).new(get_properties(properties))
@@ -41,13 +41,8 @@ module StanfordCoreNLP
41
41
  },
42
42
 
43
43
  :ner => {
44
- :english => {
45
- '3class' => 'all.3class.distsim.crf.ser.gz',
46
- '7class' => 'muc.7class.distsim.crf.ser.gz',
47
- 'MISCclass' => 'conll.4class.distsim.crf.ser.gz'
48
- },
49
- :german => {},
50
- :french => {}
44
+ :english => 'all.3class.distsim.crf.ser.gz'
45
+ # :german => {} # Add this at some point.
51
46
  },
52
47
 
53
48
  :dcoref => {
metadata CHANGED
@@ -1,71 +1,91 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: stanford-core-nlp
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.2
5
- prerelease:
4
+ prerelease:
5
+ version: 0.4.3
6
6
  platform: ruby
7
7
  authors:
8
8
  - Louis Mullie
9
- autorequire:
9
+ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
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
- requirement: !ruby/object:Gem::Requirement
16
+ version_requirements: !ruby/object:Gem::Requirement
17
+ requirements:
18
+ - - ~>
19
+ - !ruby/object:Gem::Version
20
+ version: 0.2.2
17
21
  none: false
22
+ requirement: !ruby/object:Gem::Requirement
18
23
  requirements:
19
- - - ! '>='
24
+ - - ~>
20
25
  - !ruby/object:Gem::Version
21
- version: '0'
22
- type: :runtime
26
+ version: 0.2.2
27
+ none: false
23
28
  prerelease: false
29
+ type: :runtime
30
+ - !ruby/object:Gem::Dependency
31
+ name: rspec
24
32
  version_requirements: !ruby/object:Gem::Requirement
33
+ requirements:
34
+ - - ! '>='
35
+ - !ruby/object:Gem::Version
36
+ version: !binary |-
37
+ MA==
25
38
  none: false
39
+ requirement: !ruby/object:Gem::Requirement
26
40
  requirements:
27
41
  - - ! '>='
28
42
  - !ruby/object:Gem::Version
29
- version: '0'
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. "
43
+ version: !binary |-
44
+ MA==
45
+ none: false
46
+ prerelease: false
47
+ type: :development
48
+ description: " High-level Ruby bindings to the Stanford CoreNLP package, a set natural\
49
+ \ language processing \ntools that provides tokenization, part-of-speech tagging\
50
+ \ and parsing for several languages, as well as named entity \nrecognition and coreference\
51
+ \ resolution for English. "
34
52
  email:
35
53
  - louis.mullie@gmail.com
36
54
  executables: []
37
55
  extensions: []
38
56
  extra_rdoc_files: []
39
57
  files:
58
+ - lib/stanford-core-nlp.rb
40
59
  - lib/stanford-core-nlp/bridge.rb
41
60
  - lib/stanford-core-nlp/config.rb
42
- - lib/stanford-core-nlp.rb
43
61
  - bin/AnnotationBridge.java
44
62
  - bin/bridge.jar
45
63
  - README.md
46
64
  - LICENSE
47
65
  homepage: https://github.com/louismullie/stanford-core-nlp
48
66
  licenses: []
49
- post_install_message:
67
+ post_install_message:
50
68
  rdoc_options: []
51
69
  require_paths:
52
70
  - lib
53
71
  required_ruby_version: !ruby/object:Gem::Requirement
54
- none: false
55
72
  requirements:
56
73
  - - ! '>='
57
74
  - !ruby/object:Gem::Version
58
- version: '0'
59
- required_rubygems_version: !ruby/object:Gem::Requirement
75
+ version: !binary |-
76
+ MA==
60
77
  none: false
78
+ required_rubygems_version: !ruby/object:Gem::Requirement
61
79
  requirements:
62
80
  - - ! '>='
63
81
  - !ruby/object:Gem::Version
64
- version: '0'
82
+ version: !binary |-
83
+ MA==
84
+ none: false
65
85
  requirements: []
66
- rubyforge_project:
86
+ rubyforge_project:
67
87
  rubygems_version: 1.8.24
68
- signing_key:
88
+ signing_key:
69
89
  specification_version: 3
70
90
  summary: Ruby bindings to the Stanford Core NLP tools.
71
91
  test_files: []