-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathSearcher.flaskApp.html
51 lines (46 loc) · 3.7 KB
/
Searcher.flaskApp.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html><head><title>Python: module Searcher.flaskApp</title>
<meta charset="utf-8">
</head><body bgcolor="#f0f0f8">
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="heading">
<tr bgcolor="#7799ee">
<td valign=bottom> <br>
<font color="#ffffff" face="helvetica, arial"> <br><big><big><strong><a href="Searcher.html"><font color="#ffffff">Searcher</font></a>.flaskApp</strong></big></big></font></td
><td align=right valign=bottom
><font color="#ffffff" face="helvetica, arial"><a href=".">index</a><br><a href="file:/home/vamshi/PycharmProjects/InformationRetrieval/Searcher/flaskApp.py">/home/vamshi/PycharmProjects/InformationRetrieval/Searcher/flaskApp.py</a></font></td></tr></table>
<p><tt>Defines various methods that are used to render templates with data obtained<br>
from python and then use flask to serve them.</tt></p>
<p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#aa55cc">
<td colspan=3 valign=bottom> <br>
<font color="#ffffff" face="helvetica, arial"><big><strong>Modules</strong></big></font></td></tr>
<tr><td bgcolor="#aa55cc"><tt> </tt></td><td> </td>
<td width="100%"><table width="100%" summary="list"><tr><td width="25%" valign=top><a href="unicodedata.html">unicodedata</a><br>
</td><td width="25%" valign=top></td><td width="25%" valign=top></td><td width="25%" valign=top></td></tr></table></td></tr></table><p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#eeaa77">
<td colspan=3 valign=bottom> <br>
<font color="#ffffff" face="helvetica, arial"><big><strong>Functions</strong></big></font></td></tr>
<tr><td bgcolor="#eeaa77"><tt> </tt></td><td> </td>
<td width="100%"><dl><dt><a name="-main"><strong>main</strong></a>()</dt><dd><tt>Displays a basic search_bar<br>
:return:</tt></dd></dl>
<dl><dt><a name="-search"><strong>search</strong></a>()</dt><dd><tt>When a user enters a search query, it is obtained here. It calculates the<br>
top documents by using the Searcher class.<br>
:return: A template which is populated by input_query, top 20 results,<br>
cosine scores of various query_words, and words whose document frequency<br>
is zero.</tt></dd></dl>
<dl><dt><a name="-weighted_search"><strong>weighted_search</strong></a>()</dt><dd><tt>When a user Enters weights to use for different query_words, those are<br>
obtained by this method.<br>
:return: A template populated by input_query, results obtained due to<br>
weighted search, the scores of various query_words as given by the user<br>
and words whose document frequency is zero</tt></dd></dl>
</td></tr></table><p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#55aa55">
<td colspan=3 valign=bottom> <br>
<font color="#ffffff" face="helvetica, arial"><big><strong>Data</strong></big></font></td></tr>
<tr><td bgcolor="#55aa55"><tt> </tt></td><td> </td>
<td width="100%"><strong>app</strong> = <Flask 'Searcher.flaskApp'><br>
<strong>request</strong> = <LocalProxy unbound></td></tr></table>
</body></html>