dgai91 / pytorch-acnn-model

code of Relation Classification via Multi-Level Attention CNNs

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Calculating Relative Distance of Words

ni9elf opened this issue · comments

Hi,

In function pos in file data_pro.py, relative distance of words is mapped to [0,123). Why is 123 chosen? Is it related to the maximum sentence length of the data?

Thanks,
Nigel

sorry I've forgot why 123. but I think it is the maxlen of data