Class: FuzzyTools::TfIdfIndex::Token

Inherits:
Object
  • Object
show all
Defined in:
lib/fuzzy_tools/tf_idf_index.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeToken

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

#documentsObject

Returns the value of attribute documents.



8
9
10
# File 'lib/fuzzy_tools/tf_idf_index.rb', line 8

def documents
  @documents
end

#idfObject

Returns the value of attribute idf.



8
9
10
# File 'lib/fuzzy_tools/tf_idf_index.rb', line 8

def idf
  @idf
end