Commit Graph

34 Commits

Author SHA1 Message Date
Brian S. Stephan 464727cc74 markov: abandon min_words_per_sentence for lines
was yielding too many short chains, i think
2016-06-30 23:16:13 -05:00
Brian S. Stephan dcb7a0af4a markov: some debugging statements in longish 2016-06-30 23:05:58 -05:00
Brian S. Stephan ccfc5e7484 markov: be smarter with appending punctuation
don't append commas ever (it looks weird), ignore other situations
where the chain already ends with punctation so we don't need more
2016-06-30 22:46:47 -05:00
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 c9f73f44e2 markov: point admin forms at templates properly 2016-06-30 16:26:06 -05:00
Brian S. Stephan 81339a4f16 markov: bit of debug logging in file import 2016-06-30 16:25:38 -05:00
Brian S. Stephan 85f9ae7d4d convert the very basic UI we had to bootstrap 2016-03-30 16:00:49 -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 47a1352a0a change __unicode__()s to __str__()s 2016-01-16 18:21: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 505dc8799c markov: configure what channels to learn from 2015-09-17 22:22:59 -05:00
Brian S. Stephan 4a092ec603 markov: have context in target's __unicode__() 2015-06-20 01:09:42 -05:00
Brian S. Stephan a345f4567e make the markov admin view URLs a bit better 2015-06-13 13:08:14 -05:00
Brian S. Stephan 65a03ced03 use adminplus to add admin views
move the markov learning views into the admin
2015-06-13 12:20:10 -05:00
Brian S. Stephan 7d13119176 standardize logging logger names 2015-05-21 22:05:10 -05:00
Brian S. Stephan 1ec1b54e5a remove a bunch of old vi modelines 2015-05-21 21:57:54 -05:00
Brian S. Stephan e77dc571be markov: remove unused imports in ircplugin 2015-05-19 21:54:39 -05:00
Brian S. Stephan 53caf2b94b reference handlers directly rather than w/getattr
mostly just picking a convention
2015-05-15 22:21:15 -05:00
Brian S. Stephan 903a8f5c80 ircbot: list to remove_global_regex_handler
same as previous commit, inverse of add_, for convenience
2015-05-15 22:15:43 -05:00
Brian S. Stephan 134c02dc59 ircbot: list of events to add_global_regex_handler
for convenience, pass a list of events to add_global_regex_handler if
you want to have multiple things fire the same handler. common case is
pubmsg and privmsg
2015-05-15 22:08:00 -05:00
Brian S. Stephan 16fa94cb24 markov: don't learn recursive stuff 2015-05-15 18:38:00 -05:00
Brian S. Stephan 43da4bff5a markov: add !markov reply command 2015-05-15 18:37:48 -05:00
Brian S. Stephan 115e82f0fc ircmgmt, markov: actually use bot.reply() right 2015-05-15 18:19:55 -05:00
Brian S. Stephan 07ca50dfb6 ircbot: reply() method that supports recursion
undecided if i'll bother to bring recursion back, but if it works out,
provide this method to either reply or give text to the thing recursing.
either way this is a bit clearer than using privmsg() directly, usually
2015-05-15 17:35:03 -05:00
Brian S. Stephan 94656b71d2 markov: irc plugin
doesn't support the (unused?) commands of the old bot yet, but does do
basic irc watching and replying
2015-05-15 17:02:28 -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
Brian S. Stephan 1570bc28f9 markov: increase context/target name size 2015-05-15 08:32:36 -05:00
Brian S. Stephan 92bea5f629 Django 1.8 port: move markov templates to app dir 2015-05-15 08:30:58 -05:00
Brian S. Stephan 518ad4174a django bump to 1.7.8 2015-05-08 22:32:04 -05:00
Brian S. Stephan 2ffdf26ec2 reorganizing project directories, part 1 2015-05-08 20:37:22 -05:00