-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.html
81 lines (74 loc) · 3.15 KB
/
main.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
70
71
72
73
74
75
76
77
78
79
80
81
<!DOCTYPE html>
<html>
<head>
<title>SO Tags Recommender</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="style.css">
</head>
<body>
<h2 id="header">SO Tags Recommender</h2>
<div id="main_content">
<!-- input zone -->
<p style="text-align: left; margin-left: 18px;">Title:</p>
<textarea autofocus id="title" rows="2"></textarea>
<p style="text-align: left; margin-left: 18px;">Description:</p>
<textarea autofocus id="description" rows="6"></textarea>
<center><input class="button" id="add_text" type="button" value="Insert Text"/></center>
<table id = "user_choice">
<tr>
<td id = "left_part">
<p>Select number of tags (k):</p>
<input id="k" type="number" min="1" value="5" max="5" required/>
</td>
<td rowspan="2" style="padding-left: 20px;">
<p>Select prediction model: </p>
<form action="" style="text-align: left;">
<input type="radio" id="bow" name="model" value="bow" checked>
<label for="bow">BoW + Logistic Regression</label><br><br>
<input type="radio" id="ngram" name="model" value="ngram">
<label for="ngram">N-Gram + MultinomialNB</label><br><br>
<input type="radio" id="tfidf" name="model" value="tfidf">
<label for="tfidf">TF-IDF + MLPClassifier</label><br><br>
<input type="radio" id="bert" name="model" value="bert">
<label for="bert">DistilBERT Base Uncased</label>
</form>
</td>
</tr>
<tr>
<td id = "right_part">
<p>Specify decision threshold:</p>
<input id="threshold" type="number" min="0.1" value="0.5" max="0.9" step="0.1" required/>
</td>
</tr>
</table>
<!-- result zone -->
<div id="tags">
<div id="loading">
<img id="load" src="images\loading.gif" alt="loading" />
</div>
<div id="tags_list">
<p>Recommended Tags</p>
<select id="tag_option" multiple></select>
</div>
<div id="sorry"></div>
</div>
<div id="button_zone">
<center><input class="button" id="submit" type="button" value="Go"/></center>
<center>
<table id = "button_table">
<tr>
<td>
<center><input class="button" id="add_tags" type="button" value="Add"/></center>
</td>
<td>
<center><input class="button" id="reset" type="button" value="Reset"/></center>
</td>
</tr>
</table>
</center>
</div>
</div>
</body>
<script src="main.js"></script>
</html>