Class: SemExtractor

Inherits:
Object
  • Object
show all
Defined in:
lib/apis/yahoo.rb,
lib/apis/calais.rb,
lib/apis/zemanta.rb,
lib/apis/textwise.rb,
lib/sem_extractor.rb

Direct Known Subclasses

Calais, Textwise, Yahoo, Zemanta

Defined Under Namespace

Classes: Calais, Textwise, Yahoo, Zemanta

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#api_keyObject

Returns the value of attribute api_key.



7
8
9
# File 'lib/sem_extractor.rb', line 7

def api_key
  @api_key
end

#categoriesObject

Returns the value of attribute categories.



7
8
9
# File 'lib/sem_extractor.rb', line 7

def categories
  @categories
end

#contextObject

Returns the value of attribute context.



7
8
9
# File 'lib/sem_extractor.rb', line 7

def context
  @context
end

#geosObject

Returns the value of attribute geos.



7
8
9
# File 'lib/sem_extractor.rb', line 7

def geos
  @geos
end

#termsObject

Returns the value of attribute terms.



7
8
9
# File 'lib/sem_extractor.rb', line 7

def terms
  @terms
end

Instance Method Details

#set(options) ⇒ Object



9
10
11
12
13
14
# File 'lib/sem_extractor.rb', line 9

def set(options)
  @context = options[:context]
  @api_key = options[:api_key]
  @type = options[:type]
  @categories, @terms, @geos, @relations = Array.new, Array.new, Array.new, Array.new
end