stanford-core-nlp 0.3.1 → 0.3.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/stanford-core-nlp.rb +5 -3
  2. metadata +1 -1
@@ -1,6 +1,6 @@
1
1
  module StanfordCoreNLP
2
2
 
3
- VERSION = '0.3.1'
3
+ VERSION = '0.3.2'
4
4
 
5
5
  require 'bind-it'
6
6
  extend BindIt::Binding
@@ -71,11 +71,11 @@ module StanfordCoreNLP
71
71
  # code (e.g. :english, :eng or :en will work).
72
72
  def self.use(language)
73
73
  lang = nil
74
- self.language = language
75
74
  self.model_files = {}
76
75
  Config::LanguageCodes.each do |l,codes|
77
76
  lang = codes[2] if codes.include?(language)
78
77
  end
78
+ self.language = lang
79
79
  Config::Models.each do |n, languages|
80
80
  models = languages[lang]
81
81
  folder = Config::ModelFolders[n]
@@ -135,7 +135,9 @@ module StanfordCoreNLP
135
135
  properties[k] = f
136
136
  end
137
137
 
138
- # Bug fix for French parser
138
+ # Bug fix for French parser due to Stanford bug
139
+ # Otherwise throws IllegalArgumentException:
140
+ # Unknown option: -retainTmpSubcategories
139
141
  if self.language == :french
140
142
  properties['parser.flags'] = ''
141
143
  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.3.1
4
+ version: 0.3.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: