syntax = "proto3";

package namedentityrecognition;

option go_package = "gitlab.ost.ch/marketminds/marketminds/pkg/protobuf";

service NamedEntityRecognizer {
  rpc RecognizeEntities(RecognizeEntitiesRequest) returns (RecognizeEntitiesResponse) {}
}

message RecognizeEntitiesRequest {
  string text = 1;
}

message RecognizeEntitiesResponse {
  repeated Entity entities = 1;
}

message Entity {
  string name = 1;
  string type = 2;
  float salience = 3;
}