Class: Mushikago::Hotaru::CollocationCreateRequest
- Inherits:
-
Mushikago::Http::PostRequest
- Object
- Mushikago::Http::Request
- Mushikago::Http::PostRequest
- Mushikago::Hotaru::CollocationCreateRequest
- Defined in:
- lib/mushikago/hotaru/collocation_create_request.rb
Constant Summary
- POS_LARGE =
多くの情報を使って共起グラフを作成する品詞セットです
%w(動詞 形容詞 形容動詞 名詞 代名詞 数詞 連体詞 副詞 接続詞 感動詞 助動詞 助詞)
- POS_MEDIUM =
中程度の情報を使って共起グラフを作成する品詞セットです
%w(動詞 形容詞 形容動詞 名詞 副詞 助動詞 助詞)
- POS_SMALL =
少しの情報を使って共起グラフを作成する品詞セットです
%w(動詞 形容詞 名詞)
Instance Attribute Summary
Attributes inherited from Mushikago::Http::Request
headers, host, params, path, port
Instance Method Summary (collapse)
-
- (CollocationCreateRequest) initialize(domain_name, tags, options = {})
constructor
A new instance of CollocationCreateRequest.
- - (Object) path
Methods inherited from Mushikago::Http::PostRequest
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
- (CollocationCreateRequest) initialize(domain_name, tags, options = {})
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, , ={} super() self.domain_name = domain_name self. = self.parts_of_speech = [:parts_of_speech] if .has_key?(:parts_of_speech) self.collocation_name = [:collocation_name] if .has_key?(:collocation_name) self.lower_threshold = [:lower_threshold] if .has_key?(:lower_threshold) self.upper_threshold = [:upper_threshold] if .has_key?(:upper_threshold) self.description = [:description] if .has_key?(:description) end |
Instance Method Details
- (Object) path
5 |
# File 'lib/mushikago/hotaru/collocation_create_request.rb', line 5 def path; '/1/hotaru/collocation/create' end |