rtmaww / SENT

codes for ACL2021 paper "SENT: Sentence-level Distant Relation Extraction via Negative Training"
29 stars 4 forks source link

Where is the "/home/mrt/data/arnor_nyt/1.0/ner2id_.json" ? #7

Closed SiriYXR closed 3 years ago

SiriYXR commented 3 years ago

You write this code in Data_nyt.py, but I can't find the file ner2id_.json.

def create_ner_dict(self):
    file = "/home/mrt/data/arnor_nyt/1.0/ner2id_.json"
    with open(file, 'r') as f:
        self.ner2id = json.load(f)
rtmaww commented 3 years ago

I have updated the codes. Please try again.

SiriYXR commented 3 years ago

Thank you very much!