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() |
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() |