Exemple #1
0
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
Exemple #2
0
def testSentances(sentanceList):
    for sentance in sentanceList:
        print "Sentance: " + str(sentance)
        combos = tagger.getSentanceCombos(sentance)
        if combos != False:
          for combo in combos:
              print  str(combo)
        else:
          print "Combo returned false"
        print "----------------------------------------------------------------------\n"