@extends('layouts.main') @section('title', 'Preprocessing Data') @section('page-header')
Semua dataset telah berhasil difilter, dibersihkan, dan distemming.
@elseif($processedItems > 0)Sebagian data telah diproses. Tekan tombol Jalankan untuk melanjutkan.
@elseBelum ada teks yang diproses. Silakan jalankan mesin preprocessing.
@endif| Teks Asli (Kotor) | Cleansing & Case Folding | Tokenisasi | Normalisasi | Stopword Removal | Stemming (Teks Bersih) |
|---|---|---|---|---|---|
|
{{ $item->teks }}
@if($item->word_count)
{{ $item->word_count }} kata
@endif
|
{{ $item->teks_cleansed ?? '-' }} |
@if($item->tokenisasi)
@php
$tokens = json_decode($item->tokenisasi, true);
if(json_last_error() !== JSON_ERROR_NONE) {
$tokens = explode(',', $item->tokenisasi);
}
@endphp
@foreach($tokens as $token)
@if(trim($token) !== '')
{{ trim($token) }}
@endif
@endforeach
@else
-
@endif
|
{{ $item->teks_normalized ?? '-' }} | {{ $item->teks_stopword ?? '-' }} |
@if($item->teks_stemmed)
{{ $item->teks_stemmed }}
@php
$final_word_count = str_word_count($item->teks_stemmed);
$reduksi = 0;
if($item->word_count && $item->word_count > 0){
$reduksi = round((($item->word_count - $final_word_count) / $item->word_count) * 100);
}
@endphp
{{ $final_word_count }} kata bersih (Direduksi {{ $reduksi }}%)
@else
Menunggu...
@endif
|
|
Belum ada data teks. Silakan unggah dataset terlebih dahulu.
|
|||||