longlongman / CasRel-pytorch-reimplement

Pytorch reimplement of the paper "A Novel Cascade Binary Tagging Framework for Relational Triple Extraction" ACL2020. The original code is written in keras.
197 stars 52 forks source link

why randomly select one subject in data_loader.py #12

Open HJHjiahao opened 3 years ago

HJHjiahao commented 3 years ago

In line 72 of your data_loader.py, why only select one subject instead of performing subsequent operations on all subjects? Thanks in advance!

longlongman commented 3 years ago

In the original code of CasRel model, the subject is also selected randomly.

HJHjiahao commented 3 years ago

Yeah, and why? I didn't find the theoretical basis of it in original paper. I am confused. -_- Please!