opener-language-identifier 4.3.1 → 4.3.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f9d43ba6a3a25ac6dfd7384139018a2046d449795bf236670a9145d3296a405d
4
- data.tar.gz: 13fb84aa0f6bdc85eed7fbdfc74fcd6ee0f3cec8b96edc8754e985d4f9475619
3
+ metadata.gz: 1b5571342f78838c2fc8ba8789146f234687f56c26bffcc0ca921db6e9e94c2f
4
+ data.tar.gz: a31d195ac967cd7468323eb2042eb36e1dfd1fe2baa27326eb6fdb2942855587
5
5
  SHA512:
6
- metadata.gz: a6c4cf118305e553c94002c033a847c5490968b309750e98724422568c5c77889f4d5529c715f6d7d56f6a379f39630a8c1774e190198f5e90f97b83e8e17fda
7
- data.tar.gz: 3cc0a38f31f396dca791d0bf39bb412660530b3981f1846e6ceee0cbaff9a870fb51764d70b286b428a3cf888280023a981056ea9730a59fbde1ed5b2829a82a
6
+ metadata.gz: d74efada6a676f852798c9c4627f396a3512a300883f49cce8dcae50e7b2a040a7bf85a8c79b2c70e66a4c2dcc45e41f054858a44c0791de40bb88b2e7ac64aa
7
+ data.tar.gz: 9343d31d64f1a99e2ac242531b29244547974401c2432ca3bce96e4fc0e191c2a05f93c2f196cb60b923f5441d2553bca50ec0964b16cad6827944013cbad661
@@ -5,11 +5,6 @@ require 'pp'
5
5
 
6
6
  require 'detect_language'
7
7
 
8
- if RUBY_ENGINE == 'jruby'
9
- require_relative '../../core/target/LanguageDetection-1.0.0.jar'
10
- require_relative '../../core/target/opennlp/opennlp-tools-1.8.4.jar'
11
- end
12
-
13
8
  require_relative 'language_identifier/version'
14
9
  require_relative 'language_identifier/kaf_builder'
15
10
  require_relative 'language_identifier/cli'
@@ -1,3 +1,5 @@
1
+ require_relative '../../../../core/target/LanguageDetection-1.0.0.jar'
2
+
1
3
  module Opener
2
4
  class LanguageIdentifier
3
5
  module Backend
@@ -1,3 +1,7 @@
1
+ if ENV.values_at('BACKEND', 'FALLBACK').include? 'Opennlp'
2
+ require_relative '../../../../core/target/opennlp/opennlp-tools-1.8.4.jar'
3
+ end
4
+
1
5
  module Opener
2
6
  class LanguageIdentifier
3
7
  module Backend
@@ -1,5 +1,5 @@
1
1
  module Opener
2
2
  class LanguageIdentifier
3
- VERSION = '4.3.1'
3
+ VERSION = '4.3.2'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: opener-language-identifier
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.3.1
4
+ version: 4.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - development@olery.com
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-08-21 00:00:00.000000000 Z
11
+ date: 2018-08-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  requirement: !ruby/object:Gem::Requirement