Predicting Mental Health Problems with Automatic Identification of Metaphors
Algorithm 2
Metaphor identification algorithm.
Input: sentence; A dictionary that returns the corresponding word vector of key, Word2vec; A dictionary that returns the related word set of key, WordNet.
Output: A list of the corresponding metaphority labels of words in sentence, labels.
(1)
function TokenMetaphorIdentify (detected word; sentence)