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.
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'