baLLseM / routers /ner.py
hqms's picture
initial commit
8578816
raw
history blame contribute delete
235 Bytes
from model.ner import name_entity
class NER(object):
def __init__(self):
pass
def predict(self, req: dict):
text = req.get("text")
result = name_entity.predict(text)
return result
ner = NER()