Module: Semantic

Defined in:
lib/semantic/version.rb,
lib/semantic.rb,
lib/semantic/parser.rb,
lib/semantic/search.rb,
lib/semantic/compare.rb,
lib/semantic/matrix_transformer.rb,
lib/semantic/vector_space/model.rb,
lib/semantic/vector_space/builder.rb,
lib/semantic/transform/tf_idf_transform.rb

Overview

:nodoc:

Defined Under Namespace

Modules: Transform, VectorSpace Classes: Compare, MatrixTransformer, Parser, Search, VERSION

Class Method Summary collapse

Class Method Details

.loggerObject



21
22
23
24
25
26
27
# File 'lib/semantic.rb', line 21

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