Research Article
An Interpretable Classification Framework for Information Extraction from Online Healthcare Forums
Algorithm 1: Frequent Labeled Sequential Patterns Generation.
Input : A collection of labeled sentences , a minimum support threshold , and a minimum confidence threshold | Output : A collection of FLSPs denoted as | Labeled sequence database ; | for each sentence sample () in do | Convert into a sequence that consists of POS tags, | DRUG, SYMP, and FREQ; | ; | ; | end | FSP set := CM-SPAM [11]; | FLSP set ; | for each FSP in do | | ; | end | end | return |
|
Algorithm 1: Frequent Labeled Sequential Patterns Generation. |