Yould 0.3
Yould 0.3 is out. I improved the command line interface and included trained engines for English, French, German, and more. There is also a web interface to automate domain availability checks, thanks to Register 4 Less.
Yould 0.3 is out. I improved the command line interface and included trained engines for English, French, German, and more. There is also a web interface to automate domain availability checks, thanks to Register 4 Less.
You just got me cold :)
I wrote quite much with your old version, and as I managed to adapt it to do what i need, I find your new one with different API :)
Seem I'll have to adapt my name-generation container...
We're using yould in a battle simulator which works well for battles with up to 10.000 fighters: http://rpg-tools-1d6.sf.net
How can I call it with python to generate a given number of words?
This is my current call:
import yould.yould as yould
yould.generate_names(eval(open("yould/gutenberg_esperanto.prob").read()), 5, 12, self.anzahl * 2, 0, min_prob=0.000000001, max_prob=0.00001)
equals: yould.generate_names(eval(open("path").read()), min_length, max_length, number-of-words, domain_check, min_prob, max_prob)
And we're heavily stresstesting it by using it to generate a few tens of thousand names instead of a few random words, and it's great!
Creating 100.000 Names in chunks of 500 names each takes about 2 minutes with the old version of yould.
You would do something like:
from yould import prob
en = prob.find_trainset("en")
en.init_cache(10000)
words = [en.gen() for i in xrange(10000)]