Sha256: 8244d26067c4fa50084ea2313020a792aaee3e28d412d60d708af970801da2b8
Contents?: true
Size: 403 Bytes
Versions: 2
Compression:
Stored size: 403 Bytes
Contents
module OpenNlp class Tool attr_reader :j_instance def initialize(model) raise ArgumentError, "model must be an OpenNlp::Model" unless model.is_a?(OpenNlp::Model) @j_instance = self.class.java_class.new(model.j_model) end class << self def java_class=(value) @java_class = value end def java_class @java_class end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
open_nlp-0.0.2-java | lib/open_nlp/tool.rb |
open_nlp-0.0.1-java | lib/open_nlp/tool.rb |