Commit Graph

8 Commits

Author SHA1 Message Date
Brian S. Stephan db3e2a27a0 markov: try harder to get a right len sentence
this puts additional pressure on the sentence generator, retrying many
times to get something that's long but not too long. only testing on a
small context so far, so this is certainly not yet ready to go live, but
the results are pretty good so far
2016-06-30 22:43:26 -05:00
Brian S. Stephan 897f29c8d4 markov: tweaks to the sentence generator
this tunes things a bit in the sentence generator, trying to favor
complete sentences over the min/max word counts, which are still kinda
heeded but not as militantly. this *should* create more interesting
chains, especially with topics, without really breaking things, but this
certainly needs some testing before we can see if it's actually right
2016-06-30 22:21:02 -05:00
Brian S. Stephan 310c2aa28d markov: fake a __stop if a k1,k2 has no v
this shouldn't have happened, but i'm guessing some previous crash put
some buggy data into my database, so let's just be careful and do this.
a k1,k2 could have had any value for v, but not knowing what else to do
in this corner case, we'll just use a stop and let the caller decide
if they want to keep going
2016-01-16 23:41:46 -06:00
Brian S. Stephan 9112ad0ae7 convert the project via 2to3 2016-01-16 18:02:17 -06:00
Brian S. Stephan d9c39d3db9 markov: better context/target creation ex handling 2015-09-17 22:35:23 -05:00
Brian S. Stephan 4f17234a0a markov: force the target/context to lowercase 2015-09-17 22:35:04 -05:00
Brian S. Stephan 950ad4cc4c markov: get_or_create_target_context properly 2015-05-15 17:02:13 -05:00
Brian S. Stephan c371df5eb0 markov: move shared methods into lib.py 2015-05-15 08:36:17 -05:00