Module: RSemantic

Defined in:
lib/rsemantic/version.rb,
lib/rsemantic.rb,
lib/rsemantic/corpus.rb,
lib/rsemantic/parser.rb,
lib/rsemantic/search.rb,
lib/rsemantic/compare.rb,
lib/rsemantic/document.rb,
lib/rsemantic/search_result.rb,
lib/rsemantic/matrix_transformer.rb,
lib/rsemantic/vector_space/model.rb,
lib/rsemantic/vector_space/builder.rb,
lib/rsemantic/transform/lsa_transform.rb,
lib/rsemantic/transform/tf_idf_transform.rb

Overview

:nodoc:

Defined Under Namespace

Modules: Transform, VectorSpace Classes: Compare, Corpus, Document, MatrixTransformer, Parser, Search, SearchResult, VERSION

Class Attribute Summary collapse

Class Attribute Details

.loggerObject


27
28
29
30
31
32
33
# File 'lib/rsemantic.rb', line 27

def self.logger
  return @logger if @logger
  @logger = Logger.new(STDOUT)
  @logger.formatter = proc { |severity, time, progname, msg| "#{msg}\n" }
  @logger.level = Logger::ERROR
  @logger
end