-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathturkish-sentiment-analysis.html
More file actions
107 lines (100 loc) · 2.57 KB
/
turkish-sentiment-analysis.html
File metadata and controls
107 lines (100 loc) · 2.57 KB
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
<!DOCTYPE html>
<html lang="en">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@picocss/pico@1/css/pico.min.css">
<style>
body {
font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
background: linear-gradient(180deg, #f4f6f8, #eaeef3);
margin: 0;
padding: 2rem 1rem;
color: #222;
}
.container {
background: white;
max-width: 900px;
margin: auto;
padding: 2rem 2.5rem;
border-radius: 12px;
box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}
a {
color: #4f7cff;
font-weight: 500;
text-decoration: none;
}
a::after {
content: " →";
opacity: 0;
transition: opacity 0.2s ease;
}
li:hover a::after {
opacity: 1;
}
a:hover {
text-decoration: underline;
}
ul {
list-style: none;
padding: 0;
margin-top: 1rem;
}
li {
padding: 0.75rem 1rem;
margin-bottom: 0.6rem;
background: #f7f9fc;
border-radius: 8px;
display: flex;
align-items: center;
transition: all 0.2s ease;
}
li:hover {
background: #eef3ff;
transform: translateX(4px);
}
h1 {
font-size: 2rem;
margin-bottom: 0.5rem;
}
h2 {
margin-top: 2rem;
font-size: 1.3rem;
color: #333;
border-left: 4px solid #4f7cff;
padding-left: 0.6rem;
}
p {
color: #555;
}
.badge {
display: inline-block;
background: #4f7cff;
color: white;
padding: 0.25rem 0.6rem;
font-size: 0.75rem;
border-radius: 999px;
margin-left: 0.5rem;
vertical-align: middle;
}
</style>
<head>
<meta charset="UTF-8">
<title>Turkish Sentiment Analysis</title>
</head>
<body>
<form id="sentimentAnalysis">
<label for="sentence">Sentence:</label>
<input type="text" id="sentence" name="sentence" required><br><br>
<input type="submit" value="Sentiment Analysis">
<script src="data/turkish/turkish-sentiment-analysis.js"></script>
<script src="js/word-table.js"></script>
<script>
addEventListener('submit', function (event) {
event.preventDefault();
const sentence = document.getElementById('sentence').value;
document.getElementById("result").innerHTML = createWordTableForSentence(sentence, "Sentiment Analysis", sentimentAnalysis, "polarity", true, false);
});
</script>
</form>
<p id="result"></p>
</body>
</html>