def METHOD_NAME(self):
    # create triples
    triples = []
    for idx, row in self.df.iterrows():
        print(f"{idx} out of {len(self.df)}")
        s = self.entity2idx[row[0]]
        p = self.relation2idx[row[1]]
        o = self.entity2idx[row[2]]
        true_triple = (s, p, o, 1)
        fake_tails = self.create_fake_triple(s, p, o, mode="head")
        for fake_tail in fake_tails:
            fake_triple = (s, p, fake_tail, 0)
            triples.append(fake_triple)
            triples.append(true_triple)
    return triples