Giter Club home page Giter Club logo

markovot's Introduction

markovot

This is a bot tweets an artificially created message using second order markov chain method. This method is a mathematical system that undergoes transitions from one state to another, between a finite or countable number of possible states. This method is available and effective in case of having relationships each other. Specifically, this will select next word corresponding to the probability of occurrence of the two words with connected. This will repeats this and get generated word sequence. Therefore this can tweet as if human tweets. This personification system is really absorbing, but is still little stupid. If interested, let's play on words.

Demo

@dev_12am

Requires

Open lib/constant.php and fill the below blank.

Configure::write('twitter.user_id', '');
Configure::write('twitter.password', '');
Configure::write('twitter.consumer_key', '');
Configure::write('twitter.consumer_secret', '');
Configure::write('twitter.access_token', '');
Configure::write('twitter.access_token_secret', '');
Configure::write('yahoo.app_id', '');

Usage

needs numerous public tweets for constructing an artificially message. So, we have to setup database at first.

cd /path/to/bin
./bot setup

command for pick up tweets is:

./bot pick [num]

command for tweet is:

./bot post

Notes

  • You can't post message without picking up timeline. run ./bot pick before run ./bot post.
  • If you want to set limit on pick command, set num as option after ./bot pick.

markovot's People

Watchers

 avatar  avatar

Forkers

guoyu07

markovot's Issues

have to implement to generate a linear sequence of words like this

  1. comprehensively enumerate word sequence which could be generated from the input sentence.
  2. give the score corresponding to the probability of occurrence of the two words with connected.
  3. espouse a linear sequence of words which has highest score in the entire statement.

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.