-
Notifications
You must be signed in to change notification settings - Fork 0
/
wordAffiliation (1).html
180 lines (172 loc) · 5.39 KB
/
wordAffiliation (1).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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
<!doctype html>
<!DOCTYPE html>
<html>
<head>
<title></title>
<style type="text/css">
*{
margin:0;
padding:0;
}
a:link, a:visited {
background-color: #ff6347;
color: white;
padding: 10px 15px;
margin:auto;
text-align: center;
text-decoration: none;
display: inline-block;
}
a:hover, a:active {
margin:auto;
background-color: powderblue;
}
.regform{
width: 800px;
background-color: rgb(0,0,0,0.6);
margin:auto;
color: #FFFFFF;
padding: 10px 0px 10px 0px;
text-align: center;
border-radius: 15px 15px 0px 0px;
}
.main{
background-color: rgb(0,0,0,0.5);
width: 800px;
margin:auto ;
}
form{
padding: 10px;
}
.name{
display: inline;
margin-left: 25px;
margin-top: 30px;
width:125px;
color:white;
font-size: 18px;
font-weight: 700;
}
.amount{
position: center;
left: 200px;
top: -37px;
line-height: 40px;
border-radius: 6px;
padding: 0 22px;
font-size: 16px;
}
.option{
position: relative;
left: 200px;
top: -37px;
line-height: 40px;
width: 532px;
height: 40px;
border-radius: 6px;
padding: 0 22px;
font-size: 16px;
color: black;
outline:none;
overflow: hidden;
}
.option option{
font-size: 20px;
}
button{
background-color: #3BAF9F;
display: block;
margin: 20px 0px 0px 20px;
text-align: center;
border-radius: 12px;
border: 2px solid #366473;
padding: 14px 110px;
outline: none;
color: white;
cursor:pointer;
transition: 0.25px;
}
button:hover{
background-color:#5390F5;
}
</style>
</head>
<body style="background-image: url('https://thumbor.thedailymeal.com/SQS-StHyIFE-KGzZWq25yRggEq0=/1560x390/filters:format(webp)/https://www.theactivetimes.com/sites/default/files/2020/05/15/HERO_Wacky_Words_shutterstock.jpg'); background-repeat: no-repeat; background-attachment: fixed; background-size: cover;">
<div class= "regform"><h1> Word Affiliation - An Attempt to Delve into Word Play</h1></div>
<div class="main">
<form action="/" method="POST" enctype="multipart/form-data">
<div id="name">
<h2 class="name">Upload a Webscraped CSV File for Cleaning</h2>
<input class="amount" type="file" name="data_file" /><br>
<button type="submit">Clean</button>
<p class ="result"></p>
</form>
<br><h3 style=" border:rgba(255, 99, 71, 0.5); border-width:5px; border-style:solid; color: white;"align="center"><b></b>{{output}}</b>
</h3>
<br>
<form action="/synonyms" method="POST" >
<div id="name">
<h2 class="name">Find the Synonyms</h2>
<input class="amount" type="text" name="synonyms" ><br>
<h2 class="name">SELECT MODEL</h2>
<select class="amount" name="model">
<option disabled="disabled" selected="selected">--Choose option</option>
<option> Word2Vec</option>
<option> GloVe</option>
<option> FastText</option>
</select><br>
<button type="submit">Get Synonyms</button>
<p class ="result"></p>
</form>
</div>
<br><h3 style="border:rgba(255, 99, 71, 0.5); border-width:5px; border-style:solid; color: white;"align="center"><b></b>{{synonyms}}</b>
</h3>
<br>
<form action="/antonyms" method="POST" >
<div id="name">
<h2 class="name">Find the Antonyms</h2>
<input class="amount" type="text" name="antonyms" ><br>
<h2 class="name">SELECT MODEL</h2>
<select class="amount" name="model">
<option disabled="disabled" selected="selected">--Choose option</option>
<option> Word2Vec</option>
<option> GloVe</option>
<option> FastText</option>
</select><br>
<button type="submit">Get Antonyms</button>
<p class ="result"></p>
</form>
</div>
<br><h3 style=" border:rgba(255, 99, 71, 0.5); border-width:5px; border-style:solid; color: white;"align="center"><b></b>{{antonyms}}</b>
</h3>
<br>
<form action="/wordrelations" method="POST" >
<div id="name">
<h2 class="name">Word Relations</h2>
<h4 display: inline; style ="color: white;" >Enter three words in format of (w1 + w2 = w3 + ?) to get 4th word fitting in the same relationship</h4>
<input class="amount" type="text" name="word1"><br>
<h3 display: newline; style ="color: white;">+</h3>
<input class="amount" type="text" name="word2"><br>
<h3 display: newline; style ="color: white;">=</h3>
<input class="amount" type="text" name="word3"><br>
<h3 display: newline; style ="color: white;">+</h3>
<h3 display: newline; style ="color: white;">__________</h3>
<h2 class="name">Select Model</h2>
<select class="amount" name="model">
<option disabled="disabled" selected="selected">--Choose option</option>
<option> Word2Vec</option>
<option> GloVe</option>
<option> FastText</option>
</select><br>
<button type="submit">Find Word</button>
<p class ="result"></p>
</form>
</div>
<br><h3 style="border:rgba(255, 99, 71, 0.5); border-width:5px; border-style:solid; color: white;"align="center"><b></b>{{word4}}</b>
</h3>
<br>
<p><a href="https://github.com/akankshatanwar1701/Word-Affiliation">Github</a></p>
<p><b><em style="color: white">Akanksha -- 2K18/IT/014</em></b></p>
<p><b><em style="color: white">Anima -- 2K18/IT/021</em></b></p>
</body>
</html>