예제 #1
0
파일: views.py 프로젝트: DrDub/Pablo
def main():
    #getFileWords.prepData()
    getFileWords.prepTestData()
    
    sentence = getSentence()
    sentence = sentence.content
    sentence = getFileWords.formatString(sentence)
    print sentence
예제 #2
0
파일: views.py 프로젝트: DrDub/Pablo
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))