Sha256: 82d032ec61888a7b3c78b0385ea9bd4684172592e523c633bee15ac87c20fc43

Contents?: true

Size: 356 Bytes

Versions: 1

Compression:

Stored size: 356 Bytes

Contents

require "faraday"
require "faraday_middleware"
require "json"

module Dandelionapi

  class TextSimilarity < Base

    ENDPOINT = "/datatxt/sim/v1"

    attr_accessor :text1, :url1, :html1, :html_fragment1, :text2, :url2, :html2, :html_fragment2, :lang, :bow

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

  end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
dandelionapi-0.0.1 lib/dandelionapi/text_similarity.rb