Hey, I am interested in your work, and I have some questions about the code.
- How can I generate dict.features? (Is it the same as train.features?)
- I found that in dataset.py, specifically the read_from_file function of TSVDataset, the following lines of code will cause the indices of some entity out of the range of config['n_ents'], and thus generate error in LinkPrediction. Is there any solution to it?
Thanks in advance.
if head_ent_id == self.vocas['entity'].unk_id:
head_ent_id = _i * 2
tail_ent_id = self.vocas['entity'].get_id(tail_ent)
if tail_ent_id == self.vocas['entity'].unk_id:
tail_ent_id = _i * 2 + 1
Hey, I am interested in your work, and I have some questions about the code.
Thanks in advance.
if head_ent_id == self.vocas['entity'].unk_id:
head_ent_id = _i * 2
tail_ent_id = self.vocas['entity'].get_id(tail_ent)
if tail_ent_id == self.vocas['entity'].unk_id:
tail_ent_id = _i * 2 + 1