Class: SemExtractor
- Inherits:
-
Object
- Object
- SemExtractor
- Defined in:
- lib/apis/yahoo.rb,
lib/apis/calais.rb,
lib/apis/zemanta.rb,
lib/apis/textwise.rb,
lib/sem_extractor.rb
Defined Under Namespace
Classes: Calais, Textwise, Yahoo, Zemanta
Instance Attribute Summary collapse
-
#api_key ⇒ Object
Returns the value of attribute api_key.
-
#categories ⇒ Object
Returns the value of attribute categories.
-
#context ⇒ Object
Returns the value of attribute context.
-
#geos ⇒ Object
Returns the value of attribute geos.
-
#terms ⇒ Object
Returns the value of attribute terms.
Instance Method Summary collapse
Instance Attribute Details
#api_key ⇒ Object
Returns the value of attribute api_key.
7 8 9 |
# File 'lib/sem_extractor.rb', line 7 def api_key @api_key end |
#categories ⇒ Object
Returns the value of attribute categories.
7 8 9 |
# File 'lib/sem_extractor.rb', line 7 def categories @categories end |
#context ⇒ Object
Returns the value of attribute context.
7 8 9 |
# File 'lib/sem_extractor.rb', line 7 def context @context end |
#geos ⇒ Object
Returns the value of attribute geos.
7 8 9 |
# File 'lib/sem_extractor.rb', line 7 def geos @geos end |
#terms ⇒ Object
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() @context = [:context] @api_key = [:api_key] @type = [:type] @categories, @terms, @geos, @relations = Array.new, Array.new, Array.new, Array.new end |