cyruslk / franklin-ford-bot

0 stars 0 forks source link

Q: How do we want to pick a specific subreddit? #7

Open cyruslk opened 5 years ago

cyruslk commented 5 years ago

How do we target the reddit list of subreddits and select a thread where our fragment will be posted? For now I see two techniques we could explore:

  1. Go through the picken sentence, map through all the words -- and for all of the words, see if there's a match with one of the subreddit's name/title. If the bot returns The gathering of advertising to a given trade paper must increase just 1/2, the sentence could be posted both inside r/thegathering, r/advertising and others. Recursion and propagation mode.

  2. Go through the picken sentence, run a Watson script to interpret the sentence (Tone Analyzer, Natural Language Understanding...)and see if its interpretation is matching with one of the subreddit's name/title. More tricky, less brutal; since the sentence might be quasi-gibberish, watson might have difficulties finding a meaning.

juliettedm commented 5 years ago

I'd rather go with the second method. Could you test it and show us some results? Also, after a subreddit is selected, do we just start a new thread or reply to existing threads? I think replying to existing threads would be more interesting, but not sure how that would work.

Also, we could run the Watson script not just on a single sentence but on a whole text or a paragraph (to give the script more material to find a meaning).

cyruslk commented 5 years ago

Yes, I'm testing it now and asking for a watson API key!

Also, after a subreddit is selected, do we just start a new thread or reply to existing threads? I think replying to existing threads would be more interesting, but not sure how that would work.

Yes, we'll go with existing threads and 'comment' on the thread. We need now to decide how we'll select those threads inside the subreddit(s) we targeted.

Also, we could run the Watson script not just on a single sentence but on a whole text or a paragraph (to give the script more material to find a meaning).

Interesting. So we'll comment/reply with a sentence but the target will be decided based on the analysis of the all text where this text is embedded? I'll try both and will show you and this works.