Class: FuzzyTools::TfIdfIndex::Token
- Inherits:
-
Object
- Object
- FuzzyTools::TfIdfIndex::Token
- Defined in:
- lib/fuzzy_tools/tf_idf_index.rb
Instance Attribute Summary collapse
-
#documents ⇒ Object
Returns the value of attribute documents.
-
#idf ⇒ Object
Returns the value of attribute idf.
Instance Method Summary collapse
-
#initialize ⇒ Token
constructor
A new instance of Token.
Constructor Details
#initialize ⇒ Token
Returns a new instance of Token.
10 11 12 |
# File 'lib/fuzzy_tools/tf_idf_index.rb', line 10 def initialize @documents = Set.new end |
Instance Attribute Details
#documents ⇒ Object
Returns the value of attribute documents.
8 9 10 |
# File 'lib/fuzzy_tools/tf_idf_index.rb', line 8 def documents @documents end |
#idf ⇒ Object
Returns the value of attribute idf.
8 9 10 |
# File 'lib/fuzzy_tools/tf_idf_index.rb', line 8 def idf @idf end |