acnn icon indicating copy to clipboard operation
acnn copied to clipboard

Calculating Relative Distance of Words

Open ni9elf opened this issue 7 years ago • 1 comments

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

ni9elf avatar May 27 '18 21:05 ni9elf

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.

FrankWork avatar May 28 '18 01:05 FrankWork