Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/Speak.activity/gen_cerebro.py
blob: f9c8271e3a03cbf00fe5a8d497e405cb2770a76f (plain)
1
2
3
4
5
6
7
8
9
10
#!/usr/bin/env python
#coding=utf-8

import aiml
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("cerebro.brn")