XingYing-stack / MILR

EMNLP 2022 paper: Boosting Document-Level Relation Extraction by Mining and Injecting Logical Rules
8 stars 1 forks source link

rule_dwin.txt的加载操作是否有误 #2

Closed KaiserLord closed 1 year ago

KaiserLord commented 1 year ago

soft_rule_regularization.py中load_and_prune函数: with open("*.pl", "rb") as file: rule_miner = pickle.load(file) 一直会因为rule_dwie.txt的数据格式报错,UnpicklingError: invalid load key, '['.