Module: Cotoha::Endpoint::SentenceType

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

Instance Method Summary collapse

Instance Method Details

#sentence_type(sentence:, type: nil) ⇒ Object



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

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