lib/opener/ner.rb in opener-ner-2.0.4 vs lib/opener/ner.rb in opener-ner-2.0.5
- old
+ new
@@ -2,11 +2,10 @@
require 'opener/ners/base'
require 'nokogiri'
require_relative 'ner/version'
require_relative 'ner/cli'
-require_relative 'ner/error_layer'
module Opener
##
# Primary NER class that takes care of delegating NER actions to the language
# specific kernels.
@@ -63,10 +62,10 @@
kernel = Ners::Base.new(:args => args, :language => language)
end
return kernel.run(input)
rescue Exception => error
- return ErrorLayer.new(input, error.message, self.class).add
+ return Opener::Core::ErrorLayer.new(input, error.message, self.class).add
end
end
protected