Sha256: 5b15f60e678b91ba17be737a3a1ab5694f25365b269c1cf4bfd9a573534bcc94
Contents?: true
Size: 593 Bytes
Versions: 1
Compression:
Stored size: 593 Bytes
Contents
# encoding: UTF-8 require "faraday" require "faraday_middleware" require "json" module Dandelionapi class TextSimilarity class Request < Comparison::Request ENDPOINT = "/sim/v1" MANDATORY_FIELDS_1 = [ "text1", "url1", "html1", "html_fragment1" ] MANDATORY_FIELDS_2 = [ "text2", "url2", "html2", "html_fragment2" ] OPTIONAL_FIELDS = [ "lang", "bow" ] def compare(options) params = options call(ENDPOINT, params) end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
dandelionapi-0.0.5 | lib/dandelionapi/text_similarity.rb |