resume-analysis / protos /resume.proto
minskiter's picture
feat(server.py): update match positions
2447637
syntax = "proto3";
service Resume{
// Get Resume Info
rpc GetInfo(TextRequest) returns (ResumeEntitiesResponse);
rpc Health(PingRequest) returns (PongResponse);
rpc MatchPosition(PositionMatchRequest) returns (PositionMatchResponse);
}
message PingRequest{
string ping = 1;
}
message Position{
string name = 1;
repeated string required = 2;
}
message PositionMatchRequest{
repeated Position positions = 1;
string resume = 2;
}
message PositionMatch{
string position = 1;
float score = 2;
}
message PositionMatchResponse{
repeated PositionMatch matches = 1;
}
message PongResponse{
string done = 1;
}
message TextRequest{
string text = 1;
}
message Entity{
string entity = 1;
int32 start = 2;
int32 end = 3;
optional string text = 4;
string origin = 5;
optional string level = 6;
}
message JobEntity {
Entity start = 1;
Entity end = 2;
Entity company = 3;
}
message ResumeEntitiesResponse{
repeated Entity names = 1;
repeated Entity emails = 2;
repeated Entity phones = 3;
repeated Entity schools = 4;
repeated Entity edus = 5;
repeated Entity ages = 6;
repeated Entity genders = 7;
int32 work_years = 8;
repeated JobEntity jobs = 9;
repeated Entity titles = 10;
}