lib/opener/language_identifier/detector.rb in opener-language-identifier-3.1.7 vs lib/opener/language_identifier/detector.rb in opener-language-identifier-4.1.0

- old
+ new

@@ -2,9 +2,14 @@ import 'org.vicomtech.opennlp.LanguageDetection.CybozuDetector' module Opener class LanguageIdentifier + ## + # Singleton class wrapped around the Cybozu detector. The Cybozu code uses + # the factory pattern and stores a bunch of things on class level. As such + # the Cybozu code is *not* thread-safe. + # class Detector attr_reader :options include Singleton