17 lines
362 B
Protocol Buffer
17 lines
362 B
Protocol Buffer
syntax = "proto3";
|
|
|
|
service TextClassification {
|
|
rpc Classify(TextClassificationRequest) returns (TextClassificationResponse) {}
|
|
}
|
|
|
|
message TextClassificationRequest {
|
|
string text = 1;
|
|
repeated string labels = 2;
|
|
}
|
|
|
|
message TextClassificationResponse {
|
|
string sequence = 1;
|
|
string match = 2;
|
|
repeated string labels = 3;
|
|
repeated float scores = 4;
|
|
} |