Code Monkey home page Code Monkey logo

aqua's Introduction

Aqua

Random sentence generator trained on KonoSuba light novel using Markov chain.

Also included is a FastAPI webserver using Aqua to generate random sentences.

Training data is based on the one used by Kazuma.

Example

Normal sentences:

  • If that’s the case, I’ll wait for the Destroyer to pass through, and rebuild the town.
  • Kazuma, warn them too… Come to think of Kazuma as a terrorist, I’ll show you just how great I can be when I get serious!
  • This isn’t the capital of water and hot springs, Alcanretia?
  • This way, the gate to the mortal world… Keep this a secret, okay?
  • When the guild judges the quest to defeat the Demon King to me.

Short sentences:

  • Can you do that, I’ll share some mana with me!
  • I might look like a devil!
  • You defeated two Demon King’s army is here!
  • … Is… Is that so?
  • No matter how you look at it, isn’t this a rifle?

Usage

Clone the project.

$ git clone https://github.com/MarsRon/aqua

Create a Python virtual environment.

$ python3 -m venv venv
$ source venv/bin/activate

Install libraries.

$ pip install -r requirements.txt

Run the test script to generate a few sentences.

$ python test.py

Start the FastAPI webserver.

$ python main.py

Generate your own Markov chain

I've included a Jupyter notebook so that you can make your own Aqua.

See train.ipynb for more information.

License

Distributed under the MIT License. See LICENSE.md for more information.

Contact

MarsRon - [email protected] - marsron.name.my

aqua's People

Contributors

marsron avatar

Stargazers

 avatar

Watchers

 avatar

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.