"ModelScope自定义训练的时候提示这个问题,该怎么解决? 每个定义字段都仔细核对过了:MGeo门址地址结构化要素解析-中文-地址领域-base这个模型,错误提示:ValueError: NlpEpochBasedTrainer: MGeoForTokenClassification: You passed along num_labels=14
with an incompatible id to label map: {'0': 'B-assist', '1': 'B-cellno', '2': 'B-city', '3': 'B-community', '4': 'B-devzone', '5': 'B-distance', '6': 'B-district', '7': 'B-floorno', '8': 'B-houseno', '9': 'B-intersection', '10': 'B-poi', '11': 'B-prov', '12': 'B-road', '13': 'B-roadno', '14': 'B-subpoi', '15': 'B-town', '16': 'B-village_group', '17': 'E-assist', '18': 'E-cellno', '19': 'E-city', '20': 'E-community', '21': 'E-devzone', '22': 'E-distance', '23': 'E-district', '24': 'E-floorno', '25': 'E-houseno', '26': 'E-intersection', '27': 'E-poi', '28': 'E-prov', '29': 'E-road', '30': 'E-roadno', '31': 'E-subpoi', '32': 'E-town', '33': 'E-village_group', '34': 'I-assist', '35': 'I-cellno', '36': 'I-city', '37': 'I-community', '38': 'I-devzone', '39': 'I-distance', '40': 'I-district', '41': 'I-floorno', '42': 'I-houseno', '43': 'I-intersection', '44': 'I-poi', '45': 'I-prov', '46': 'I-road', '47': 'I-roadno', '48':
'I-subpoi', '49': 'I-town', '50': 'I-village_group', '51': 'O', '52': 'S-assist', '53': 'S-community', '54': 'S-district', '55': 'S-intersection', '56': 'S-poi'}. Since those arguments are inconsistent with each other, you should remove one of them."
print对比一下您的数据集格式和示例代码中的数据集格式。跑示例代码没问题叭,num_labels=14
看起来和您的数据集有关。 ,此回答整理自钉群“魔搭ModelScope开发者联盟群 ①”