66 lines
2.4 KiB
HTML
66 lines
2.4 KiB
HTML
{% include 'header.html' %}
|
|
<!-- Begin Page Content -->
|
|
<div class="container-fluid">
|
|
|
|
<!-- Content Row -->
|
|
<!-- Approach -->
|
|
<div class="card shadow mb-4">
|
|
<div class="card-header py-3">
|
|
<h6 class="m-0 font-weight-bold text-primary">Input Kalimat Tes Model</h6>
|
|
</div>
|
|
<div class="card-body">
|
|
<p>Silahkan ketik kalimat untuk mencoba model yang dibuat berjalan sesuai dengan
|
|
keinginan atau tidak. Untuk output [0] = positif dan [1] = negatif.</p>
|
|
<form enctype="multipart/form-data" action="/tesmodel" method="POST">
|
|
<input class="form-control" rows="3" name="text"></input>
|
|
|
|
<div class="mt-3">
|
|
<button class="btn btn-primary" value="tesmodel">Tes Model</button>
|
|
</div>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- Approach -->
|
|
<!-- <div class="card shadow mb-4">
|
|
<div class="card-header py-3">
|
|
<h6 class="m-0 font-weight-bold text-primary">Hasil Tes Model</h6>
|
|
</div>
|
|
<div class="card-body">
|
|
<p>Kalimat sebelum proses preprocessing :
|
|
{{original_text}}</p>
|
|
<p>Kalimat setelah proses preprocessing :
|
|
{{hasilprepro}}</p>
|
|
<p>Hasil analisis sentimen pada kalimat :
|
|
{{hasilsvm}}</p>
|
|
</div>
|
|
</div> -->
|
|
<!-- tesmodel.html -->
|
|
<div class="card shadow mb-4">
|
|
<div class="card-header py-3">
|
|
<h6 class="m-0 font-weight-bold text-primary">Hasil Tes Model</h6>
|
|
</div>
|
|
<div class="card-body">
|
|
<table class="table table-bordered" id="dataTable" width="100%" cellspacing="0">
|
|
<thead>
|
|
<tr>
|
|
<th>Kalimat Sebelum Preprocessing</th>
|
|
<th>Kalimat Sesudah Preprocessing</th>
|
|
<th>Hasil Analisis Sentimen</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
{% for result in results %}
|
|
<tr>
|
|
<td>{{ result.original_text }}</td>
|
|
<td>{{ result.preprocessed_text }}</td>
|
|
<td>{{ result.sentiment }}</td>
|
|
</tr>
|
|
{% endfor %}
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
{% include 'footer.html' %} |