Coder Social home page Coder Social logo

botlikeme's Introduction

botlikeme

Creating an AI bot trained from my facebook messages.

  1. Ask facebook for all my records, this includes all my messages. Facebook would email me a link to download this info after a few days.

  2. Created a python file that extracts the messages.htm into just the messages as a text file, without all the tags and with a newline to separate the messages. This condensed the 20MB file I had into a 3.7MB file(not included due to privacy reasons). This took a couple minutes.

  3. Go to ~/Library/Messages/Archive and run plutil -convert xml1 filename.ichat because I want to use my iMessages too. [Not completed]

  4. Construct dictionary of words. For every sentence, add a [START] and [END] tag, then for each consecutive pair of words, note the frequency of the later word appearing if the previous word was written.

  5. Spit out random words with a seed.

TODOs:

  1. Get a distribution of lengths of sentences and use that to influence the length of generated sentences.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.