Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/bot/gen_brains.py
diff options
context:
space:
mode:
Diffstat (limited to 'bot/gen_brains.py')
-rwxr-xr-xbot/gen_brains.py4
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))