diff options
author | Aleksey Lim <alsroot@member.fsf.org> | 2010-12-18 22:40:41 (GMT) |
---|---|---|
committer | Aleksey Lim <alsroot@member.fsf.org> | 2010-12-18 22:40:41 (GMT) |
commit | fcbf9cf59b4108e3bb4218f5d8e642eed850ae0a (patch) | |
tree | 9f183001fb47d9076c408410cd1e357c5efc9457 /bot/gen_brains.py | |
parent | 683877910d9194253dc6f46fe0021f038e92578b (diff) |
talk to computer crashes #2533
Reduce alisochka.brn by one third; check for free momory before loading brains.
Diffstat (limited to 'bot/gen_brains.py')
-rwxr-xr-x | bot/gen_brains.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/bot/gen_brains.py b/bot/gen_brains.py index 372f720..9b67ccd 100755 --- a/bot/gen_brains.py +++ b/bot/gen_brains.py @@ -19,19 +19,21 @@ #coding=utf-8 import aiml +import glob k = aiml.Kernel() -import glob laiml = glob.glob("sara/*.aiml") #devuelve lista con ficheros *.aiml for fichero in laiml: k.learn(str(fichero)) k.saveBrain("sara.brn") +k = aiml.Kernel() laiml = glob.glob("alice/*.aiml") #devuelve lista con ficheros *.aiml for fichero in laiml: k.learn(str(fichero)) k.saveBrain("alice.brn") +k = aiml.Kernel() laiml = glob.glob("alisochka/*.aiml") for fichero in laiml: k.learn(str(fichero)) |