SorrelC commited on
Commit
d9dfe6c
·
verified ·
1 Parent(s): dada12d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -6
app.py CHANGED
@@ -753,27 +753,27 @@ def create_interface():
753
  <p style="font-size: 14px; margin: 0 0 12px 0;">All six methods here are <strong>statistical or graph-based</strong> &mdash; they read only your text, need no training data, and run entirely on your machine. They differ in how they decide which words matter.</p>
754
  <dl style="margin: 0; font-size: 14px; line-height: 1.5;">
755
  <div style="margin-bottom: 10px;">
756
- <dt style="font-weight: bold; display: inline; color: #0E9F6E;">YAKE:</dt>
757
  <dd style="display: inline; margin-left: 5px;">Scores each word using simple text features &mdash; how often it appears, where it sits, whether it's capitalised, and what surrounds it. Good all-rounder, works on short texts and many languages.</dd>
758
  </div>
759
  <div style="margin-bottom: 10px;">
760
- <dt style="font-weight: bold; display: inline; color: #0E9F6E;">TF-IDF:</dt>
761
  <dd style="display: inline; margin-left: 5px;">Picks out words that are common in <em>your</em> text but rare in general &mdash; the ones that make it distinctive. A long-standing, dependable baseline.</dd>
762
  </div>
763
  <div style="margin-bottom: 10px;">
764
- <dt style="font-weight: bold; display: inline; color: #1976d2;">TopicRank:</dt>
765
  <dd style="display: inline; margin-left: 5px;">Groups similar words into topics first, then ranks the topics and picks one phrase to represent each. Reduces near-duplicates, so results cover a broader spread of themes.</dd>
766
  </div>
767
  <div style="margin-bottom: 10px;">
768
- <dt style="font-weight: bold; display: inline; color: #1976d2;">MultipartiteRank:</dt>
769
  <dd style="display: inline; margin-left: 5px;">A refinement of TopicRank that keeps individual phrases as the unit while still respecting topics. Tends to give the most balanced, precise keyphrases (the strongest performer in our tests).</dd>
770
  </div>
771
  <div style="margin-bottom: 10px;">
772
- <dt style="font-weight: bold; display: inline; color: #1976d2;">PositionRank:</dt>
773
  <dd style="display: inline; margin-left: 5px;">Gives extra weight to words that appear early in the text, on the idea that important terms are often introduced up front. Useful for structured writing like articles and abstracts.</dd>
774
  </div>
775
  <div style="margin-bottom: 10px;">
776
- <dt style="font-weight: bold; display: inline; color: #1976d2;">TextRank:</dt>
777
  <dd style="display: inline; margin-left: 5px;">Builds a network of words that appear near each other and ranks them using the same idea as Google's PageRank &mdash; a word is important if other important words connect to it.</dd>
778
  </div>
779
  </dl>
 
753
  <p style="font-size: 14px; margin: 0 0 12px 0;">All six methods here are <strong>statistical or graph-based</strong> &mdash; they read only your text, need no training data, and run entirely on your machine. They differ in how they decide which words matter.</p>
754
  <dl style="margin: 0; font-size: 14px; line-height: 1.5;">
755
  <div style="margin-bottom: 10px;">
756
+ <dt style="font-weight: bold; display: inline; color: #0E9F6E;">YAKE</dt><span style="font-size: 12px; color: #555;"> (statistical):</span>
757
  <dd style="display: inline; margin-left: 5px;">Scores each word using simple text features &mdash; how often it appears, where it sits, whether it's capitalised, and what surrounds it. Good all-rounder, works on short texts and many languages.</dd>
758
  </div>
759
  <div style="margin-bottom: 10px;">
760
+ <dt style="font-weight: bold; display: inline; color: #0E9F6E;">TF-IDF</dt><span style="font-size: 12px; color: #555;"> (statistical):</span>
761
  <dd style="display: inline; margin-left: 5px;">Picks out words that are common in <em>your</em> text but rare in general &mdash; the ones that make it distinctive. A long-standing, dependable baseline.</dd>
762
  </div>
763
  <div style="margin-bottom: 10px;">
764
+ <dt style="font-weight: bold; display: inline; color: #1976d2;">TopicRank</dt><span style="font-size: 12px; color: #555;"> (graph-based):</span>
765
  <dd style="display: inline; margin-left: 5px;">Groups similar words into topics first, then ranks the topics and picks one phrase to represent each. Reduces near-duplicates, so results cover a broader spread of themes.</dd>
766
  </div>
767
  <div style="margin-bottom: 10px;">
768
+ <dt style="font-weight: bold; display: inline; color: #1976d2;">MultipartiteRank</dt><span style="font-size: 12px; color: #555;"> (graph-based):</span>
769
  <dd style="display: inline; margin-left: 5px;">A refinement of TopicRank that keeps individual phrases as the unit while still respecting topics. Tends to give the most balanced, precise keyphrases (the strongest performer in our tests).</dd>
770
  </div>
771
  <div style="margin-bottom: 10px;">
772
+ <dt style="font-weight: bold; display: inline; color: #1976d2;">PositionRank</dt><span style="font-size: 12px; color: #555;"> (graph-based):</span>
773
  <dd style="display: inline; margin-left: 5px;">Gives extra weight to words that appear early in the text, on the idea that important terms are often introduced up front. Useful for structured writing like articles and abstracts.</dd>
774
  </div>
775
  <div style="margin-bottom: 10px;">
776
+ <dt style="font-weight: bold; display: inline; color: #1976d2;">TextRank</dt><span style="font-size: 12px; color: #555;"> (graph-based):</span>
777
  <dd style="display: inline; margin-left: 5px;">Builds a network of words that appear near each other and ranks them using the same idea as Google's PageRank &mdash; a word is important if other important words connect to it.</dd>
778
  </div>
779
  </dl>