Class: OpenNlp::Model

Inherits:
Object
  • Object
show all
Includes:
JavaClass
Defined in:
lib/open_nlp/model.rb

Defined Under Namespace

Classes: Categorizer, Chunker, Detokenizer, NamedEntityDetector, POSTagger, Parser, SentenceDetector, Tokenizer

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from JavaClass

included

Constructor Details

#initialize(model) ⇒ Model

Returns a new instance of Model.



7
8
9
# File 'lib/open_nlp/model.rb', line 7

def initialize(model)
  @j_model = self.class.java_class.new(model_stream(model))
end

Instance Attribute Details

#j_modelObject (readonly)

Returns the value of attribute j_model.



5
6
7
# File 'lib/open_nlp/model.rb', line 5

def j_model
  @j_model
end