search(['count' => 30, 'q' => urlencode($search), " result_type" => "recent", 'tweet_mode' => 'extended', 'locale' => 'id']); foreach($results as $tweet){ $string = $tweet->full_text; //cleasing $text_clean = new Clean($string); $text_clean = $text_clean->toString(); //stem $string = $stemmer->stem($string); // calculations: $scores = $sentiment->score($string); $class = $sentiment->categorise($string); // TODO: : cek sudah ada id di database, insert ke database } } $page = (isset($_POST['page'])) ? $_POST['page'] : 1; ?>
Total record : = $db->tweets->count() ?>
Id Tweet | Tweet | Text Clean | Text Stem | Label | Kunci |
---|---|---|---|---|---|
= $tweet['id_tweet'] ?> | = $tweet['text_dirty'] ?> | = $tweet['text_clean'] ?> | = $tweet['text_steam'] ?> | = $tweet['label'] ?> | = $tweet['hastag'] ?> |