def groundSupport(file): global location x=directoryScanClass() indata=x.get_text_at(location,file) y=nltkOps() avar=[] for current_category in category_list: avar.append(y.compare(indata,current_category)) return avar
def listItems(): global text_files global location del text_files[:] location=0 location=request.form['location'] #print (""+location) x=directoryScanClass() text_files=x.getContent(location) #text_files=set(text_files) return render_template('list_bootstrap.html', text_files=text_files)