-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
69 lines (65 loc) · 3.18 KB
/
index.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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="author" content="Vitor Oliveira" />
<meta name="description" content="Ranking functions on the web" />
<link rel="stylesheet" href="./style.css" />
<title>Ranking</title>
</head>
<body>
<main>
<div class="centered-container">
<h2 class="title text-center mt-0">Text search</h2>
</div>
<div class="centered-container">
<form id="search-form" class="bordered-form">
<div class="mt-5 mb-5">
<label class="label-select" for="corpus">Corpus:</label>
<select class="select mt-2" id="corpus">
<option value="bible-en" selected>English bible corpus</option>
<option value="dummy-corpus">Fake random corpus</option>
</select>
</div>
<div class="mt-5 mb-5">
<label class="label" for="query">Query:</label>
<input type="text" class="input" id="query" value="" placeholder="Enter a query..." required />
</div>
<div class="mt-5 mb-5">
<label class="label-select" for="ranking-algorithm">Algorithm:</label>
<select class="select mt-2" id="ranking-algorithm">
<option value="tf-idf" selected>TF-IDF</option>
<option value="bm25">Bm25</option>
</select>
</div>
<div class="mt-5 mb-5">
<label class="label-select" for="tf-strategy">Strategy:</label>
<select class="select mt-2" id="tf-strategy">
<option value="log" selected>Logarithm</option>
<option value="binary">Boolean</option>
<option value="frequency">Frequency</option>
<option value="adjustedFrequency">Adjusted frequency</option>
</select>
</div>
<div class="mt-5 mb-5 hidden">
<label class="label" for="k1">K1:</label>
<input type="text" value="1.2" id="k1" />
</div>
<div class="mt-5 mb-5 hidden">
<label class="label" for="b">B:</label>
<input type="text" value="0.75" id="b" />
</div>
<button class="btn centered-btn" type="submit">Search</button>
</form>
</div>
<div id="result" class="centered-container">
<h2 class="title text-center">Result:</h2>
<ul class="score-list centered-container" id="score">
</ul>
</div>
</main>
<script type="module" src="./main.js"></script>
</body>
</html>