/opt/miniconda3/envs/pycorrector_ernie/lib/python3.8/site-packages/_distutils_hack/__init__.py:33: UserWarning: Setuptools is replacing distutils.
warnings.warn("Setuptools is replacing distutils.")
Traceback (most recent call last):
File "/home/house365ai/pycorrector/examples/ernie_csc_demo.py", line 27, in <module>
corrector = ErnieCSCCorrector("csc-ernie-1.0")
File "/home/house365ai/pycorrector/pycorrector/ernie_csc/ernie_csc_corrector.py", line 19, in __init__
self.text_correction = Taskflow("text_correction", model=model)
File "/opt/miniconda3/envs/pycorrector_ernie/lib/python3.8/site-packages/paddlenlp/taskflow/taskflow.py", line 822, in __init__
assert self.model in set(TASKS[task][tag].keys()), f"The {tag} name: {model} is not in task:[{task}]"
AssertionError: The models name: csc-ernie-1.0 is not in task:[text_correction]