Open NeoKun004 opened 11 months ago
You can change the output_format in pipeline and do something like this
pipeline = Pipeline(self.prompter, self.model,
output_format='[{"T":"entity type", "E":"entity text", "start": "entity start index", "end":"entity end index"}, {"T":"entity type", "E":"entity text", "start": "entity start index", "end":"entity end index"},...]',)
Hello , i was wondering if its possible to use Promptfy to return the NER and the index of the detected entities , that will help alot in NER tasks ( cause some text have multipe NERs and having the index will help bypassing that issue