mirror of
https://github.com/kevin-DL/services.git
synced 2026-01-11 19:04:35 +00:00
24 lines
374 B
Protocol Buffer
24 lines
374 B
Protocol Buffer
syntax = "proto3";
|
|
|
|
package sentiment;
|
|
|
|
option go_package = "./proto;sentiment";
|
|
|
|
service Sentiment {
|
|
rpc Analyze(Request) returns (Response) {};
|
|
}
|
|
|
|
// Analyze and score a piece of text
|
|
message Request {
|
|
// The text to analyze
|
|
string text = 1;
|
|
// The language. Defaults to english.
|
|
string lang = 2;
|
|
}
|
|
|
|
message Response {
|
|
// The score of the text
|
|
double score = 1;
|
|
}
|
|
|