Research Article
Towards a Framework for Acquisition and Analysis of Speeches to Identify Suspicious Contents through Machine Learning
Algorithm 2
Creating word indexed dictionary.
(1) | Input: lists of tokenized documents, where represents the list of words present in document. | (2) | Goal: a word-to-index dictionary of input documents, gives the index of the word | (3) | | (4) | | (5) | for in do | (6) | for in do | (7) | ifnot in then | (8) | | (9) | | (10) | else | (11) | do nothing (the is already added to the dictionary) | (12) | end if | (13) | end for | (14) | end for |
|