Module: Cotoha::Endpoint::Keyword

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

Instance Method Summary collapse

Instance Method Details

#keywords(document:, type: nil, do_segment: false, max_keyword_num: nil, dic_type: nil) ⇒ Object



4
5
6
7
8
9
10
11
12
13
# File 'lib/cotoha/endpoint/keyword.rb', line 4

def keywords(document:, type: nil, do_segment: false, max_keyword_num: nil, dic_type: nil)
  params = {
    document: document,
    type: type,
    do_segment: do_segment,
    max_keyword_num: max_keyword_num,
    dic_type: dic_type
  }
  post('/api/dev/nlp/v1/keyword', **params)
end