Givralix / PerlBot

It's a bot of Pearl from Steven Universe for Tumblr!
http://perlbot.tumblr.com/
2 stars 0 forks source link

answer questions #8

Closed Givralix closed 8 years ago

Givralix commented 8 years ago

here's some stuff about natural language processing in perl: http://www.mawode.com/~waltman/talks/nlp_ppw.pdf (extremely useful)

Givralix commented 8 years ago

(i think i'm gonna do the same thing for reblogging stuff)

  1. check for asks
  2. look for each word of the question in shitpost_database
  3. put every sentence that contains those words in an array
  4. remove duplicates
  5. add the sentences from the question to the array
  6. generate a sentence using a markov chain and the array
  7. answer the ask i'll send perlbot some asks to try it out
Givralix commented 8 years ago

apparently the API doesn't have anything to answer asks???

Givralix commented 8 years ago

i'll just work on reblogs

Givralix commented 8 years ago

the url to retrieve answers is the same as to retrieve submissions nice!! also heres something abt text generation http://textprocessing.org/open-source-text-processing-project-simplenlg

Givralix commented 8 years ago

http://www.unix.com/programming/222277-perl-json-hash-printfriendly.html heres why i had trouble i wasnt decoding the json thing lol

Givralix commented 8 years ago

http://stackoverflow.com/questions/25950359/decoding-and-using-json-data-in-perl lol

Givralix commented 8 years ago

done <3