Class: Dandelionapi::TextSimilarity

Inherits:
Base
  • Object
show all
Defined in:
lib/dandelionapi/text_similarity.rb

Constant Summary collapse

ENDPOINT =
"/datatxt/sim/v1"

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#bowObject

Returns the value of attribute bow.



13
14
15
# File 'lib/dandelionapi/text_similarity.rb', line 13

def bow
  @bow
end

#html1Object

Returns the value of attribute html1.



13
14
15
# File 'lib/dandelionapi/text_similarity.rb', line 13

def html1
  @html1
end

#html2Object

Returns the value of attribute html2.



13
14
15
# File 'lib/dandelionapi/text_similarity.rb', line 13

def html2
  @html2
end

#html_fragment1Object

Returns the value of attribute html_fragment1.



13
14
15
# File 'lib/dandelionapi/text_similarity.rb', line 13

def html_fragment1
  @html_fragment1
end

#html_fragment2Object

Returns the value of attribute html_fragment2.



13
14
15
# File 'lib/dandelionapi/text_similarity.rb', line 13

def html_fragment2
  @html_fragment2
end

#langObject

Returns the value of attribute lang.



13
14
15
# File 'lib/dandelionapi/text_similarity.rb', line 13

def lang
  @lang
end

#text1Object

Returns the value of attribute text1.



13
14
15
# File 'lib/dandelionapi/text_similarity.rb', line 13

def text1
  @text1
end

#text2Object

Returns the value of attribute text2.



13
14
15
# File 'lib/dandelionapi/text_similarity.rb', line 13

def text2
  @text2
end

#url1Object

Returns the value of attribute url1.



13
14
15
# File 'lib/dandelionapi/text_similarity.rb', line 13

def url1
  @url1
end

#url2Object

Returns the value of attribute url2.



13
14
15
# File 'lib/dandelionapi/text_similarity.rb', line 13

def url2
  @url2
end

Instance Method Details

#analyze(options) ⇒ Object



15
16
17
18
# File 'lib/dandelionapi/text_similarity.rb', line 15

def analyze(options)
  params = options
  call(ENDPOINT, params)
end