Class: OpenNlp::Model
- Inherits:
-
Object
- Object
- OpenNlp::Model
- Includes:
- JavaClass
- Defined in:
- lib/open_nlp/model.rb
Direct Known Subclasses
Categorizer, Chunker, Detokenizer, NamedEntityDetector, POSTagger, Parser, SentenceDetector, Tokenizer
Defined Under Namespace
Classes: Categorizer, Chunker, Detokenizer, NamedEntityDetector, POSTagger, Parser, SentenceDetector, Tokenizer
Instance Attribute Summary collapse
-
#j_model ⇒ Object
readonly
Returns the value of attribute j_model.
Instance Method Summary collapse
-
#initialize(model) ⇒ Model
constructor
A new instance of Model.
Methods included from JavaClass
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_model ⇒ Object (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 |