import make as lrnr
t = lrnr.smarty()
t.learn("dogs bark")
t.learn("cats do not bark")
t.learn("dogs are warm blooded")
t.learn("cats are warm blooded")
t.learn("fish are not warm blooded")
t.learn("fish have scales")
t.think()
t.prt()
t.predPrt()
bark blooded scales
dogs 1 1 None
cats 0 1 None
fish None 0 1
bark blooded scales
dogs 1 1 1
cats 0 1 1
fish 0.5 0 1