def load_tables():
 words = []
 utable = numpy.load((path_to_tables + 'utable.npy'))
 btable = numpy.load((path_to_tables + 'btable.npy'))
 f = open((path_to_tables + 'dictionary.txt'), 'rb')
 for line in f:
  words.append(line.decode('utf-8').strip())
 f.close()
 utable = OrderedDict(zip(words, utable))
 btable = OrderedDict(zip(words, btable))
 return (utable, btable)

def load_tables ( ) : words = [ ] utable = numpy . load ( ( path_to_tables + 'utable.npy' ) ) btable = numpy . load ( ( path_to_tables + 'btable.npy' ) ) f = open ( ( path_to_tables + 'dictionary.txt' ) , 'rb' ) for line in f : words . append ( line . decode ( 'utf-8' ) . strip ( ) ) f . close ( ) utable = OrderedDict ( zip ( words , utable ) ) btable = OrderedDict ( zip ( words , btable ) ) return ( utable , btable )
load the tables .