Coder Social home page Coder Social logo

markovify's Introduction

Markovify

Fetch text from p tags in URLs and generate text using large language models or markov chains with content learned from the text.

Usage

The program takes a list of URLs to scrape via command line arguments.

$ ./markovify.py https://en.wikipedia.org/wiki/Art
https://en.wikipedia.org/wiki/War https://en.wikipedia.org/wiki/Religion

And then it randomly generates often humourus text based on the probabilities of word transitions in the text scraped from these URLs.

However the art Symbolism impressionism and military tactics and video or
intended to each artwork have emerged in the sound of Émile Durkheim Karl
Marx and infection.

The program will scrape two random Wikipedia pages by default.

$ ./markovify.py

The Inuyama Castle which is located in 1868.

Mix odd topics for more hilarity.

$ ./markovify.py https://en.wikipedia.org/wiki/George_W._Bush
https://en.wikipedia.org/wiki/Fashion

She is using a person chooses to track how to his name be Jesus Day in Iraq
and to as the law a fashion industry.

Experimental support for generation using the Microsoft phi-2 LLM on Apple silicon using MLX.

$ ./markovify.py --mlx

The Nikon AF-S DX Nikkor mm f/2.8G ED VR is a full-frame,
wide angle prime lens for Nikon DX format DSLR cameras.

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.