Xinyu Yang
Xinyu Yang
数据集的格式和Parsing功能的格式一致,并且Parsing微调能够正常使用,但是POS微调报错: TypeError: CharModel.forward() missing 4 required positional arguments: 'chars', 'seq_len', 'task_class', and 'target' 希望得到大佬的解答
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...
**Describe the bug** A clear and concise description of what the bug is. **Code to reproduce the issue** Provide a reproducible test case that is the bare minimum necessary to...