huimanho commited on
Commit
2a38a66
·
verified ·
1 Parent(s): 43080b4

Create result.html

Browse files
Files changed (1) hide show
  1. result.html +29 -0
result.html ADDED
@@ -0,0 +1,29 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!DOCTYPE html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="UTF-8">
5
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
+ <title>Analysis Results</title>
7
+ </head>
8
+ <body>
9
+ <h1>Analysis Results</h1>
10
+ <h2>Original Comment:</h2>
11
+ <p>{{ result.original_comment }}</p>
12
+
13
+ <h2>Cleaned Comment:</h2>
14
+ <p>{{ result.cleaned_comment }}</p>
15
+
16
+ <h2>Sentiment Analysis:</h2>
17
+ <p>Label: {{ result.sentiment.label }}</p>
18
+ <p>Score: {{ result.sentiment.score }}</p>
19
+
20
+ <h2>Detected Entities:</h2>
21
+ <ul>
22
+ {% for entity in result.entities %}
23
+ <li>{{ entity.word }} - {{ entity.entity_group }} (Score: {{ entity.score }})</li>
24
+ {% endfor %}
25
+ </ul>
26
+
27
+ <a href="/">Analyze Another Comment</a>
28
+ </body>
29
+ </html>