Class: Mushikago::Hotaru::CollocationCreateRequest

Inherits:
Mushikago::Http::PostRequest show all
Defined in:
lib/mushikago/hotaru/collocation_create_request.rb

Constant Summary collapse

POS_LARGE =

多くの情報を使って共起グラフを作成する品詞セットです

%w(動詞 形容詞 形容動詞 名詞 代名詞 数詞 連体詞 副詞 接続詞 感動詞 助動詞 助詞)
POS_MEDIUM =

中程度の情報を使って共起グラフを作成する品詞セットです

%w(動詞 形容詞 形容動詞 名詞 副詞 助動詞 助詞)
POS_SMALL =

少しの情報を使って共起グラフを作成する品詞セットです

%w(動詞 形容詞 名詞)

Instance Attribute Summary

Attributes inherited from Mushikago::Http::Request

#headers, #host, #params, #port

Instance Method Summary collapse

Methods inherited from Mushikago::Http::PostRequest

#http_method

Methods included from Auth::Signature

#add_signature!, #string_to_sign

Methods inherited from Mushikago::Http::Request

#[], #[]=, add_param, #to_http_request, #url_encoded_params

Constructor Details

#initialize(domain_name, tags, options = {}) ⇒ CollocationCreateRequest

Returns a new instance of CollocationCreateRequest.



14
15
16
17
18
19
20
21
22
23
# File 'lib/mushikago/hotaru/collocation_create_request.rb', line 14

def initialize domain_name, tags, options={}
  super(options)
  self.domain_name = domain_name
  self.tags = tags
  self.parts_of_speech = options[:parts_of_speech] if options.has_key?(:parts_of_speech)
  self.collocation_name = options[:collocation_name] if options.has_key?(:collocation_name)
  self.lower_threshold = options[:lower_threshold] if options.has_key?(:lower_threshold)
  self.upper_threshold = options[:upper_threshold] if options.has_key?(:upper_threshold)
  self.description = options[:description] if options.has_key?(:description)
end

Instance Method Details

#pathObject



5
# File 'lib/mushikago/hotaru/collocation_create_request.rb', line 5

def path; '/1/hotaru/collocation/create' end