HanLP icon indicating copy to clipboard operation
HanLP copied to clipboard

No module named 'hanlp.datasets.parsing.ctb'

Open ndyysheep opened this issue 3 years ago • 0 comments

from hanlp.datasets.parsing.ctb import CTB8_SD330_TRAIN, CTB8_SD330_DEV, CTB8_SD330_TEST from hanlp.utils.io_util import get_resource

下载数据集

train_data_path = get_resource(CTB8_SD330_TRAIN) dev_data_path = get_resource(CTB8_SD330_DEV) test_data_path = get_resource(CTB8_SD330_TEST)

打印数据集的本地路径

print(f'Training data saved to: {train_data_path}') print(f'Dev data saved to: {dev_data_path}') print(f'Test data saved to: {test_data_path}') 使用以上代码打算下载依存分析的数据集来查看数据格式的,但是报错: No module named 'hanlp.datasets.parsing.ctb'

  • [x] I've completed this form and searched the web for solutions.

ndyysheep avatar Nov 30 '23 12:11 ndyysheep