ashrujit / unherd

2 stars 5 forks source link

Self mentions as a feature weight #29

Open ashrujit opened 10 years ago

ashrujit commented 10 years ago

If your self is mentioned in a tweet, that should be counted as a feature and have a higher weight.

The use cases are -

  1. Typically a reply to your own tweet. This should be on top of top stories.
  2. If a brand name is mentioned in a tweet, this needs to be at the top of stories as well.

In the funneling approach, the brand tweets should come to the top, but then the usual NER approach should bring relevant ones ranked.

Please discuss over a call if unclear.

ashrujit commented 10 years ago

We are only doing one part at the moment, and in node (see flow below to understand the reasoning behind it). If the tweet has the recipient mentioned - that is, say @jipy9 will receive a tweet where in the body @jipy9 is mentioned then, check, if the reply_to field is populated. if so, then check if the original tweet was sent by @jipy9. that is, is this a reply to a tweet sent by @jipy9 then, increase the score to a higher value, say add +50 if the user is mentioned, but its not a direct reply, that is, @pranayiitd sent a tweet. @mithunsatheesh replied, while replying @mithunsatheesh cc'd @jipy9 in the tweet. these are the so-called cc tweets. in this case, add +40 to the score if the user is mentioned and this is not a reply to any tweet. these are called tagged tweets. then add +10 to the score.