Module: Cotoha::Endpoint::Sentiment

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

Instance Method Summary collapse

Instance Method Details

#sentiment(sentence:) ⇒ Object



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

def sentiment(sentence:)
  post('/api/dev/nlp/v1/sentiment', sentence: sentence)
end