Research Article

A Supervised Approach to Predict the Hierarchical Structure of Conversation Threads for Comments

Pseudocode 2

A pseudocode for calculating score of frequent words between two comments.
procedure frequent-words (comment, candidate comment)
Sum = 0;
For each (Word1 in comment)
   For each (Word2 in candidate-comment)
       Sum += Score Word1, Word2 ;
   End if
End for
return Sum;