mirror of
https://github.com/kevin-DL/services.git
synced 2026-01-23 07:41:25 +00:00
add sentiment analaysis mvp
This commit is contained in:
19
sentiment/proto/sentiment.proto
Normal file
19
sentiment/proto/sentiment.proto
Normal file
@@ -0,0 +1,19 @@
|
||||
syntax = "proto3";
|
||||
|
||||
package sentiment;
|
||||
|
||||
option go_package = "proto;sentiment";
|
||||
|
||||
service Sentiment {
|
||||
rpc Analyze(Request) returns (Response) {};
|
||||
}
|
||||
|
||||
message Request {
|
||||
string text = 1;
|
||||
string lang = 2;
|
||||
}
|
||||
|
||||
message Response {
|
||||
double score = 1;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user