fixed dynamic labels
Browse files
app.py
CHANGED
@@ -21,7 +21,7 @@ def transcription(audio):
|
|
21 |
|
22 |
def named_entity_recognition(req: NER_Request):
|
23 |
ner = init_model_ner()
|
24 |
-
result = get_entity_results(entities_list=entity_labels_sample,
|
25 |
model=ner,
|
26 |
text=req.text)
|
27 |
print('result:',result,type(result))
|
|
|
21 |
|
22 |
def named_entity_recognition(req: NER_Request):
|
23 |
ner = init_model_ner()
|
24 |
+
result = get_entity_results(entities_list=req.entities,#entity_labels_sample,
|
25 |
model=ner,
|
26 |
text=req.text)
|
27 |
print('result:',result,type(result))
|