Giter VIP home page Giter VIP logo

Comments (6)

jsvine avatar jsvine commented on June 16, 2024

Hi @emreaypar, really interesting question. Right now, markovify doesn't provide a method for doing this. But it should, at least in theory, be feasible. How do you envision it working? Something like the following?:

import markovify
import json

model_a = json.load(open("path/to/model_a.json"))
model_b = json.load(open("path/to/model_b.json"))

model_combined = markovify.combine([ model_a, model_b ])

chain = markovify.Text.from_json(model_combined)

Or another way?

from markovify.

emreaypar avatar emreaypar commented on June 16, 2024

exactly like you mentioned.
i'm using markovify for poetry and i think i need switch/merge/add/remove
operations for corpora.

On Wednesday, 30 March 2016, Jeremy Singer-Vine [email protected]
wrote:

Hi @emreaypar https://github.com/emreaypar, really interesting
question. Right now, markovify doesn't provide a method for doing this.
But it should, at least in theory, be feasible. How do you envision it
working? Something like the following?:

import markovifyimport json

model_a = json.load(open("path/to/model_a.json"))
model_b = json.load(open("path/to/model_b.json"))

model_combined = markovify.combine([ model_a, model_b ])

chain = markovify.Text.from_json(model_combined)

Or another way?


You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHub
#13 (comment)

-ea

from markovify.

jsvine avatar jsvine commented on June 16, 2024

Neat, and makes sense. I'll try adding that sometime soon. Great idea.

from markovify.

emreaypar avatar emreaypar commented on June 16, 2024

great, thanks.

On Wednesday, 30 March 2016, Jeremy Singer-Vine [email protected]
wrote:

Neat, and makes sense. I'll try adding that sometime soon. Great idea.


You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHub
#13 (comment)

-ea

from markovify.

jsvine avatar jsvine commented on June 16, 2024

Added this feature in v0.3.0: #14

pip install markovify --upgrade should get you the new version. Curious to see what you make with it!

from markovify.

emreaypar avatar emreaypar commented on June 16, 2024

yay! i'm curious too... thanks.

from markovify.

Related Issues (20)

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.