SeanLee97 / xmnlp

xmnlp:提供中文分词, 词性标注, 命名体识别,情感分析,文本纠错,文本转拼音,文本摘要,偏旁部首,句子表征及文本相似度计算等功能

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

代码勘误

ZXTFINAL opened this issue · comments

base_model.py内对onnxruntime调用代码有误

`# -- coding: utf-8 --

from abc import ABCMeta, abstractmethod

import onnxruntime as ort

class BaseModel(metaclass=ABCMeta):

def __init__(self, model_path: str):
    self.sess = ort.InferenceSession(model_path, providors=['CPUExecutionProvider'])

@abstractmethod
def predict(self):
    raise NotImplementedError`

是providers不是providors

commented

已修复