def getLineDictionary(line):
 lineDictionary = {}
 splitLine = line.split(' DCTB ')
 for splitLineIndex in xrange(len(splitLine)):
  word = splitLine[splitLineIndex]
  if (word != ''):
   lineDictionary[splitLineIndex] = word
 return lineDictionary

def getLineDictionary ( line ) : lineDictionary = { } splitLine = line . split ( ' DCTB ' ) for splitLineIndex in xrange ( len ( splitLine ) ) : word = splitLine [ splitLineIndex ] if ( word != '' ) : lineDictionary [ splitLineIndex ] = word return lineDictionary
get the line dictionary .