acnn
acnn copied to clipboard
Calculating Relative Distance of Words
Hi,
In function pos in file utils.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
It is just a hyperparameter. 123 is related to 60. The actual relative distance is : <-60, [-60 -1], 0, [1, 60], >60, a total of 123.