treat 1.0.3 → 1.0.4
Sign up to get free protection for your applications and to get access to all the features.
data/lib/treat.rb
CHANGED
@@ -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.
|
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
|