Exemple #1
0
def main():
    #getFileWords.prepData()
    getFileWords.prepTestData()
    
    sentence = getSentence()
    sentence = sentence.content
    sentence = getFileWords.formatString(sentence)
    print sentence
Exemple #2
0
def index(request):

    #prepData()
    sentence = getSentence()
    sentence = sentence.content
    sentence = formatString(sentence)

    #sentence = "Adjective noun verb preposition article noun."
    return render_to_response('index.html', {'sentence': sentence}, 
                               context_instance=RequestContext(request))