Research Article

Intelligence Is beyond Learning: A Context-Aware Artificial Intelligent System for Video Understanding

Algorithm 4

Generate concepts from context.
(1)agreg_likes ⟵ new dict()
(2)for each ccomments do
(3) c text ⟵ c[text]
(4)for each tupleword dict do
(5)  w text ⟵ tuple[text]
(6)  if c text: find(w_text) then
(7)   if w_textd then
(8)    agreg likes[w text]++
(9)   else
(10)    agreg likes[w_text] 1
(11)   end if
(12)  end if
(13)end for
(14)end for
(15)final context ⟵ [toList(agreg likes)]
(16)Sortfinal_context descending
(17)Initializefinal_weight ⟵ new dict()
(18)for each tuplefinal_context do
(19) ratio ⟵ tuple[0]=total likes
(20) final weight:append((tuple[1]; ratio))
(21)end for
(22)Detect location from context
(23)Parse meanings of emojis