lib/opener/language_identifier/backend/opennlp.rb in opener-language-identifier-4.3.1 vs lib/opener/language_identifier/backend/opennlp.rb in opener-language-identifier-4.3.2
- old
+ new
@@ -1,4 +1,8 @@
+if ENV.values_at('BACKEND', 'FALLBACK').include? 'Opennlp'
+ require_relative '../../../../core/target/opennlp/opennlp-tools-1.8.4.jar'
+end
+
module Opener
class LanguageIdentifier
module Backend
class Opennlp