zero-shot-classification-zh/protos/classification.proto
2024-10-24 11:12:23 +08:00

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;
}