Class: Keywords

Inherits:
Object
  • Object
show all
Defined in:
lib/artemo/keywords.rb

Overview

Note:

This class create database of keywords

Returns of keywords.

Returns:

  • (Array)

    of keywords

Class Method Summary collapse

Class Method Details

.callObject

Note:

This method is loading database of emotions (source: saifmohammad.com) in binary format.


8
9
10
11
12
# File 'lib/artemo/keywords.rb', line 8

def self.call
  include = File.expand_path('../../../include/database.db', __FILE__)
  f = File.open(include, "rb")
  Marshal.load(f)
end