<div class="page-header col-md-12"> <div class="col-md-6"> <h1> <small>Word</small> <div><?php print $word_str; ?> </div> </h1> </div> <div class="col-md-6"> <div> <?php $bg = bar_graph1($trend, 300, 400, 'year', 'frequency', 2005, 2015); print $bg; ?> </div> <table class="table"> <tr> <td>Prevelance (ttf)</td> <td><?php print $score['ttf']; ?> </td> </tr> <tr> <td>Specificity (idf)</td> <td><?php print round($score['idf'], 4); ?> </td>
<?php $p = array(); foreach ($phrases as $phrase) { $p[] = $phrase['topic_phrase']; } print "<small>" . implode(' | ', $p) . "</small>"; ?> </div> </h1> </div> <div id="topic-item-words" class="col-md-4"> <h2>Topic Trend</h2> <p>Average topic weight in documents by year</p> <?php $bg = bar_graph1($trend, 250, 350, 'year', 'average weight', 2005, 2015); print $bg; ?> <h2>Topic <var>α</var></h2> <?php print progress_bar('success', $topic_info['topic_alpha'], 0, $alpha_stats['max'], $topic_info['topic_alpha']); ?> <h2>Top Words</h2> <?php $vmax = $max_words; // Max words for the whole corpus; may want to change this to for the topic $vmin = 0; foreach ($words as $word) { $vnow = $word['word_count']; $word_url = base_url('word/item/' . $word['word_str']);