Module: Cotoha::Endpoint::Parse

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

Instance Method Summary collapse

Instance Method Details

#parse(sentence:, type: nil, dict_type: nil) ⇒ Object



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

def parse(sentence:, type: nil, dict_type: nil)
  post('/api/dev/nlp/v1/parse', sentence: sentence, type: type, dict_type: dict_type)
end