Research Article

TapChain: A Rule Chain Recognition Model Based on Multiple Features

Algorithm 1

Correcting predicate dislocation.
Input: (root of syntax tree)
Output: (root of corrected syntax tree)
(1)function FixPredicate()
(2)if (  = = NULL) and (getSubjct() = = NULL) then
(3)  return
(4)end if
(5)
(6)
(7)if) then
(8)  
(9)  if_then
(10)  
(11)  
(12)  
(13)  
(14)  
(15)  
(16)  end if
(17)end if
(18)return
(19)end function