Skip to content

About dict.features and other questions #8

Description

@Frankie123421

Hey, I am interested in your work, and I have some questions about the code.

  1. How can I generate dict.features? (Is it the same as train.features?)
  2. 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions