treat 1.0.3 → 1.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/lib/treat.rb CHANGED
@@ -10,7 +10,7 @@ module Treat
10
10
  end
11
11
 
12
12
  # The current version of Treat.
13
- VERSION = "1.0.3"
13
+ VERSION = "1.0.4"
14
14
 
15
15
  # Add methods to handle syntactic sugar,
16
16
  # language configuration options, and paths.
@@ -21,7 +21,7 @@ class Treat::Extractors::NameTag::Stanford
21
21
  tokens = isolated_token ? [entity] : entity.tokens
22
22
 
23
23
  ms = StanfordCoreNLP::Config::Models[:ner][language]
24
- ms = Treat.models + 'stanford/' +
24
+ ms = Treat::Loaders::Stanford.model_path + '/' +
25
25
  StanfordCoreNLP::Config::ModelFolders[:ner] +
26
26
  ms['3class']
27
27
 
@@ -22,10 +22,9 @@ class Treat::Lexicalizers::Taggers::Stanford
22
22
 
23
23
  # Handle options and initialize the tagger.
24
24
  lang = entity.language
25
-
26
25
  options = get_options(options, lang)
27
- tokens, list = get_token_list(entity)
28
26
  init_tagger(lang)
27
+ tokens, list = get_token_list(entity)
29
28
 
30
29
  # Do the tagging.
31
30
  i = 0
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: treat
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.3
4
+ version: 1.0.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: