syuoni / eznlp

Easy Natural Language Processing
Apache License 2.0
130 stars 21 forks source link

为什么是end-1 #53

Open houyuchao opened 1 month ago

houyuchao commented 1 month ago

看论文说是将原来是span的位置start,end设置为1-sb_epsilon,为什么位置边成了end-1 image

syuoni commented 1 month ago

论文是为了能对应其他文献的写法,一般都描述为 [start, end] 闭区间

代码中一般都是 [start, end) 左开右闭区间,比如 Python 里的 range(5, 10) 包括 5 不包括 10。

houyuchao commented 1 month ago

论文是为了能对应其他文献的写法,一般都描述为 [start, end] 闭区间

代码中一般都是 [start, end) 左开右闭区间,比如 Python 里的 range(5, 10) 包括 5 不包括 10。

谢谢