Module: Reckon

Defined in:
lib/reckon/cosine_similarity.rb,
lib/reckon/app.rb,
lib/reckon/money.rb,
lib/reckon/logger.rb,
lib/reckon/options.rb,
lib/reckon/version.rb,
lib/reckon/csv_parser.rb,
lib/reckon/date_column.rb,
lib/reckon/ledger_parser.rb,
lib/reckon/beancount_parser.rb

Overview

Implementation of cosine similarity using TF-IDF for vectorization.

In information retrieval, tf–idf, short for term frequency–inverse document frequency, is a numerical statistic that is intended to reflect how important a word is to a document in a collection or corpus

Cosine Similarity a measurement to determine how similar 2 documents are to each other.

These weights and measures are used to suggest which account a transaction should be assigned to.

Defined Under Namespace

Classes: App, BeancountParser, CSVParser, CosineSimilarity, DateColumn, LedgerParser, Money, MoneyColumn, Options

Constant Summary collapse

LOGGER =
Logger.new(STDERR)
VERSION =
"0.10.0"

Instance Method Summary collapse

Instance Method Details

#log(tag, msg) ⇒ Object



5
6
7
# File 'lib/reckon/logger.rb', line 5

def log(tag, msg)
  LOGGER.add(Logger::WARN, msg, tag)
end