Class: ModelFox::Unigram
- Inherits:
-
Object
- Object
- ModelFox::Unigram
- Defined in:
- lib/modelfox/modelfox.rb
Overview
This describes a unigram ngram.
Instance Attribute Summary collapse
-
#token ⇒ Object
readonly
This is the token.
Instance Method Summary collapse
-
#initialize(token) ⇒ Unigram
constructor
A new instance of Unigram.
Constructor Details
#initialize(token) ⇒ Unigram
Returns a new instance of Unigram.
173 174 175 |
# File 'lib/modelfox/modelfox.rb', line 173 def initialize(token) @token = token end |
Instance Attribute Details
#token ⇒ Object (readonly)
This is the token.
172 173 174 |
# File 'lib/modelfox/modelfox.rb', line 172 def token @token end |