Module: Cotoha::Endpoint::Similarity

Included in:
Cotoha::Endpoint
Defined in:
lib/cotoha/endpoint/similarity.rb

Instance Method Summary collapse

Instance Method Details

#similarity(s1:, s2:, type: nil, dic_type: nil) ⇒ Object



4
5
6
# File 'lib/cotoha/endpoint/similarity.rb', line 4

def similarity(s1:, s2:, type: nil, dic_type: nil)
  post('/api/dev/nlp/v1/similarity', s1: s1, s2: s2, type: type, dic_type: dic_type)
end