====== identifyWeiboPostRelatedWithPerson(weibo_id, pid) ====== ===== Description ===== Judge whether a weibo post is related to a certain person in the database or not. ===== Parameters ===== ^ Parameters ^ Necessity ^ Type ^ Description ^ | weibo_id | required | string | the unique id for each weibo post | | pid | required | int | the serial number of a certain person in the database | ===== Output ===== ^ Parameters ^ Type ^ Description ^ | related | bool | True if the post is related to the person, false otherwise | ===== See Also ===== [[https://www.cse.cuhk.edu.hk/irwin.king/projs/clans/docs/extractfilterkeyword|extractfilterkeyword]] ===== Implementation ===== - Find out which filter keywords that related to the person appeared in the post. - Use the product of these keywords' weight as the weight of this post. - Set the threshold as the weight product of the keywords that apeared in the stock name of the related company. - If the weight of the post is larger than the threshold, then we take it as a related one. Otherwise, it will be labbeled as an unrelated one ===== Related Work ===== * http://www.sciencedirect.com/science/article/pii/S0957417413001516 * http://dl.acm.org/citation.cfm?id=1119181 * http://dl.acm.org/citation.cfm?id=1060813 * http://dl.acm.org/citation.cfm?id=1871689 * http://dl.acm.org/citation.cfm?id=2124364