def main(sentance): #this makes a call to the tagger that will return a list of all possible #part of speech combos, with percentage chance of occuring. tagCombos = tagger.getSentanceCombos(sentance) if(tagCombos != False): parsedSentance = parser.parseSentance(tagCombos[0][0], tagCombos[0][1]) else: return False
def testInput(inputList): for i in inputList: print "Input: " + str(i) + "\nOutput: " + str(parser.parseSentance(i, 1.0)) + "\n\n"