Sha256: 33e803d44191512af953bbb7013f4d343ad2f665b5fcc6e41586b54673e68ed5
Contents?: true
Size: 756 Bytes
Versions: 1
Compression:
Stored size: 756 Bytes
Contents
module OpenNLP # Library version. VERSION = '0.1.4' # Require Java bindings. require 'open-nlp/bindings' # Require Ruby wrappers. require 'open-nlp/classes' # Setup the JVM and load the default JARs. def self.load OpenNLP::Bindings.bind end # Load a Java class into the OpenNLP # namespace (e.g. OpenNLP::Loaded). def self.load_class(*args) OpenNLP::Bindings.load_class(*args) end # Forwards the handling of missing # constants to the Bindings class. def self.const_missing(const) OpenNLP::Bindings.const_get(const) end # Forward the handling of missing # methods to the Bindings class. def self.method_missing(sym, *args, &block) OpenNLP::Bindings.send(sym, *args, &block) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
open-nlp-0.1.4 | lib/open-nlp.rb |