Algorithm 1: Fragmentation modification algorithm in the knowledge-based postprocessing stage |
Input: |
An identified segments sequence , The ith subtask segment
|
Output: |
A modified and identified segments sequence , The ith modified subtask segment
|
1: |
// is the semantic subtask of sitting. |
2: |
|
3: |
|
4: |
for from 2 to
do
|
5: |
if
!= && ==
then
|
6: |
=
|
7: |
else if
!= && != && ==
then
|
8: |
=
|
9: |
end if
|
10: |
=
|
11: |
end for |
12: |
|
13: |
|
14: |
|
15: |
return
|