ModelScope这个必须要有吗?数据不用 devzone 但是提示有这个错误?valueerror: NlpEpochBasedTrainer: MGeoForTokenClassification: You passed along num_labels=21
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. '21': 'E-devzone',
这边跑了模型卡片上的自定义训练,没问题。https://modelscope.cn/models/damo/mgeo_geographic_elements_tagging_chinese_base/summary数据集用了下图geoeta-dev.json中的前64条:
,此回答整理自钉群“魔搭ModelScope开发者联盟群 ①”