Skip to main content
. 2022 May 10;22(10):3637. doi: 10.3390/s22103637
Algorithm 1 Span association pairing algorithm.
Input: An input sentence X=X1,X2,X3,,Xn
Output: The candidate pair P
1: for i in MAXDOCUMENTLENGTH do
2:   for j in [iw,i+w+1] do
3:      if j in MAXDOCUMENTLENGTH then
4:         Pairi,jXi,Xj
5:      loci,jUi,j
6:      Yi,jpairEi,Ci
7:PPairYpairloc
8:Return P