示例#1
0
文件: main.py 项目: bs7280/nlpParser
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
示例#2
0
def testInput(inputList):
    for i in inputList:
        print "Input: " + str(i) + "\nOutput: " + str(parser.parseSentance(i, 1.0)) + "\n\n"