Esempio n. 1
0
def main():
  authorkey,combinedkey,readerkey = data.trainingKeys()

  i = 0
  for path,f,doc in data.walkTrainDataDoc():
    print doc

    print i
    i += 1
Esempio n. 2
0
def assembleAllPages():
  """
  Assembles all training documents as marked-up HTML
  """

  authorkey,combinedkey,readerkey = data.trainingKeys()
  keydict = {'authorkey': authorkey, 'combinedkey': combinedkey,
      'readerkey': readerkey}

  for path,f,doc in data.walkTrainDataDoc():
    page = assemblePage(path, f, doc, keydict)