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