-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtest.py
executable file
·34 lines (34 loc) · 1.03 KB
/
test.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
import gla
query = raw_input("Ask? ")
query = gla.gaiml(query)
print "#------------------------AIML------------------#"
print query
for i in query:
query = gla.gdisc(i)
print "#------------------------DISC------------------#"
print "Rest :",query
msg = gla.gspl(query)
if msg!="":
print "#------------------------SPL-------------------#"
print msg
else:
query,cols = gla.wordmatrix(query)
print "#-----------------------WM---------------------#"
print "Rest :",query
print "Fields :",cols
print "#-----------------------TAB---------------------#"
tabs = gla.gettable(query,cols)
print "Tables :",tabs
print "#----------------------STATS--------------------#"
flag,field,table = gla.getstats(query)
if flag:
grapher(table,field)
else:
print "Stats : <NA>"
print "#-----------------------LOG---------------------#"
query,symbol,wtn,date = gla.logic(query)
print "Rest :",query
print "Symbol :",symbol
print "Values :",wtn
print "Date :",date
print "#---------------------END----------------------#"