Plugin Directory

Changeset 685226


Ignore:
Timestamp:
03/21/2013 02:31:54 PM (13 years ago)
Author:
chr15
Message:

Update Plugin to 1.0.2

Location:
summy/trunk
Files:
8 edited

Legend:

Unmodified
Added
Removed
  • summy/trunk/inc/backend.php

    r664156 r685226  
    4444    'maxWordsLimit' => max(1, intval($_POST['maxWordsLimit'])),
    4545    'termScore' => 'tfisf',
    46     'positionScore' => in_array($_POST['positionScore'], array('baxendale', 'news')) ? $_POST['positionScore'] : null,
     46    'positionScore' => in_array($_POST['positionScore'], array('baxendale', 'article')) ? $_POST['positionScore'] : null,
    4747    'TW' => max(0.0, floatval($_POST['TW'])),
    4848    'PW' => max(0.0, floatval($_POST['PW'])),
     
    9191            //'termFrequency' => $summy->termFrequency,
    9292            //'sentencesWords' => $summy->sentenceWordsIndex,
    93                 'config' => $summy->config
     93            'config' => $summy->config
    9494        );
    9595    }
  • summy/trunk/inc/ui.php

    r664156 r685226  
    11<?php
    2 
    32/**
    43 * @package     WP-Summy
     
    2120    $def = get_option('summy');
    2221    $languages = array('en' => __('English', 'summy'), 'gr' => __('Greek', 'summy'));
    23     $positions = array('news' => __('News Articles', 'summy'), 'baxendale' => __('Baxendale', 'summy'));
     22    $positions = array('article' => __('Article', 'summy'), 'baxendale' => __('Baxendale', 'summy'));
    2423    wp_nonce_field('summy-summy-summarize', '_summynonce');
    2524
     
    3635            </select>
    3736        </li>
    38         <li> 
     37        <li>
    3938            <label for="summyRate"><?php _e('Output Rate', 'summy') ?>:</label>
    4039            <input type="number" name="summy[rate]" id="summyRate" min="1" max="99" value="<?php echo esc_attr($def['rate']); ?>" />%
    4140        </li>
    4241        <li>
    43             <label><?php _e('Words Limit', 'summy') ?>:</label>
     42            <label><?php _e('Words Limits', 'summy') ?>:</label>
    4443            <input type="number" name="summy[minWordsLimit]" id="summyMinWordsLimit" min="1" max="99" value="<?php echo esc_attr($def['minWordsLimit']); ?>" /> <?php _e('Min', 'summy') ?>
    4544            <input type="number" name="summy[maxWordsLimit]" id="summyMaxWordsLimit" min="1" max="99" value="<?php echo esc_attr($def['maxWordsLimit']); ?>" /> <?php _e('Max', 'summy') ?>
     
    5150        </li>
    5251        <li>
    53             <label for="summyTermScore"><?php _e('Terms Score Method', 'summy') ?>:</label>
     52            <label for="summyTermScore"><?php _e('Terms Score', 'summy') ?>:</label>
    5453            <select name="summy[termScore]" id="summyTermScore">
    5554                <option value="tfisf"><?php _e('TF-ISF', 'summy') ?></option>
     
    6261        </li>
    6362        <li>
    64             <label for="summyPositionScore"><?php _e('Position Score Method', 'summy') ?>:</label>
     63            <label for="summyPositionScore"><?php _e('Position Score', 'summy') ?>:</label>
    6564            <select name="summy[positionScore]" id="summyPositionScore">
    6665                <?php foreach($positions AS $key => $text): ?>
     
    7069            <p>
    7170            <ul class="description ul-square">
    72                 <li><?php _e('The News Articles method ranks higher top paragraphs/sentence.', 'summy'); ?></li>
     71                <li><?php _e('The Article method ranks higher top paragraphs/sentence.', 'summy'); ?></li>
    7372                <li><?php _e('The Baxendale\'s method ranks higher the first and last sentences in a paragraph.', 'summy'); ?></li>
    7473            </ul>
     
    7675        </li>
    7776        <li>
    78             <label><?php _e('Score Weights', 'summy') ?>:</label>
     77            <label><?php _e('Scores Weights', 'summy') ?>:</label>
    7978            <input type="number" name="summy[TW]" id="summyTW" min="0.0" max="5.0" value="<?php echo esc_attr($def['TW']); ?>" step="0.1" /> <?php _e('TW', 'summy') ?>
    8079            <input type="number" name="summy[PW]" id="summyPW" min="0.0" max="5.0" value="<?php echo esc_attr($def['PW']); ?>" step="0.1" /> <?php _e('PW', 'summy') ?>
  • summy/trunk/lang/summy-el.po

    r668154 r685226  
    22msgstr ""
    33"Project-Id-Version: WP-Summy v1.0\n"
    4 "POT-Creation-Date: 2013-02-15 01:56+0200\n"
    5 "PO-Revision-Date: 2013-02-15 01:58+0200\n"
     4"POT-Creation-Date: 2013-03-21 16:21+0200\n"
     5"PO-Revision-Date: 2013-03-21 16:21+0200\n"
    66"Last-Translator: \n"
    77"Language-Team: \n"
     
    3535msgstr "Η δημιουργία περίληψης απέτυχε για άγνωστο λόγο."
    3636
    37 #: D:\wamp\www\wordpress\wp-content\plugins\summy/inc/ui.php:16
     37#: D:\wamp\www\wordpress\wp-content\plugins\summy/inc/ui.php:15
    3838msgid "Summy: Excerpt Extraction"
    3939msgstr "Summy: Εξαγωγή Αποσπάσματος"
    4040
    41 #: D:\wamp\www\wordpress\wp-content\plugins\summy/inc/ui.php:22
     41#: D:\wamp\www\wordpress\wp-content\plugins\summy/inc/ui.php:21
    4242msgid "English"
    4343msgstr "Αγγλικά"
    4444
    45 #: D:\wamp\www\wordpress\wp-content\plugins\summy/inc/ui.php:22
     45#: D:\wamp\www\wordpress\wp-content\plugins\summy/inc/ui.php:21
    4646msgid "Greek"
    4747msgstr "Ελληνικά"
    4848
    49 #: D:\wamp\www\wordpress\wp-content\plugins\summy/inc/ui.php:23
    50 msgid "News Articles"
    51 msgstr "Άρθρα"
     49#: D:\wamp\www\wordpress\wp-content\plugins\summy/inc/ui.php:22
     50msgid "Article"
     51msgstr "Άρθρο"
    5252
    53 #: D:\wamp\www\wordpress\wp-content\plugins\summy/inc/ui.php:23
     53#: D:\wamp\www\wordpress\wp-content\plugins\summy/inc/ui.php:22
    5454msgid "Baxendale"
    5555msgstr "Baxendale"
    5656
    57 #: D:\wamp\www\wordpress\wp-content\plugins\summy/inc/ui.php:31
     57#: D:\wamp\www\wordpress\wp-content\plugins\summy/inc/ui.php:30
    5858msgid "Laguage"
    5959msgstr "Γλώσσα"
    6060
    61 #: D:\wamp\www\wordpress\wp-content\plugins\summy/inc/ui.php:39
     61#: D:\wamp\www\wordpress\wp-content\plugins\summy/inc/ui.php:38
    6262msgid "Output Rate"
    6363msgstr "Ποσοστό εξόδου"
    6464
    65 #: D:\wamp\www\wordpress\wp-content\plugins\summy/inc/ui.php:43
    66 msgid "Words Limit"
     65#: D:\wamp\www\wordpress\wp-content\plugins\summy/inc/ui.php:42
     66#, fuzzy
     67msgid "Words Limits"
    6768msgstr "Όρια λέξεων"
    6869
    69 #: D:\wamp\www\wordpress\wp-content\plugins\summy/inc/ui.php:44
     70#: D:\wamp\www\wordpress\wp-content\plugins\summy/inc/ui.php:43
    7071msgid "Min"
    7172msgstr "Min"
    7273
    73 #: D:\wamp\www\wordpress\wp-content\plugins\summy/inc/ui.php:45
     74#: D:\wamp\www\wordpress\wp-content\plugins\summy/inc/ui.php:44
    7475msgid "Max"
    7576msgstr "Max"
    7677
    77 #: D:\wamp\www\wordpress\wp-content\plugins\summy/inc/ui.php:48
     78#: D:\wamp\www\wordpress\wp-content\plugins\summy/inc/ui.php:47
    7879msgid ""
    7980"The sentences that exceed the word limits will be ingored. 0 disables the "
     
    8384"απενεργοποιεί το όριο."
    8485
    85 #: D:\wamp\www\wordpress\wp-content\plugins\summy/inc/ui.php:53
    86 msgid "Terms Score Method"
     86#: D:\wamp\www\wordpress\wp-content\plugins\summy/inc/ui.php:52
     87#, fuzzy
     88msgid "Terms Score"
    8789msgstr "Βαθμολογία Όρων"
    8890
    89 #: D:\wamp\www\wordpress\wp-content\plugins\summy/inc/ui.php:55
     91#: D:\wamp\www\wordpress\wp-content\plugins\summy/inc/ui.php:54
    9092msgid "TF-ISF"
    9193msgstr "TF-ISF"
    9294
    93 #: D:\wamp\www\wordpress\wp-content\plugins\summy/inc/ui.php:59
     95#: D:\wamp\www\wordpress\wp-content\plugins\summy/inc/ui.php:58
    9496msgid ""
    9597"Term Frequency Inverse Sentence Frequency, rewards the less used words in "
     
    99101"όρους με χαμηλή συχνότητα στις προτάσεις."
    100102
    101 #: D:\wamp\www\wordpress\wp-content\plugins\summy/inc/ui.php:64
    102 msgid "Position Score Method"
     103#: D:\wamp\www\wordpress\wp-content\plugins\summy/inc/ui.php:63
     104#, fuzzy
     105msgid "Position Score"
    103106msgstr "Βαθμολογία θέσης"
    104107
     108#: D:\wamp\www\wordpress\wp-content\plugins\summy/inc/ui.php:71
     109msgid "The Article method ranks higher top paragraphs/sentence."
     110msgstr ""
     111"Η μέθοδος `Άρθρο` βαθμολογεί υψηλότερα τις αρχικές παραγράφους/προτάσεις."
     112
    105113#: D:\wamp\www\wordpress\wp-content\plugins\summy/inc/ui.php:72
    106 msgid "The News Articles method ranks higher top paragraphs/sentence."
    107 msgstr ""
    108 "Η μέθοδος Άρθρα βαθμολογεί υψηλότερα τις αρχικές παραγράφους/προτάσεις."
    109 
    110 #: D:\wamp\www\wordpress\wp-content\plugins\summy/inc/ui.php:73
    111114msgid ""
    112115"The Baxendale's method ranks higher the first and last sentences in a "
     
    116119"κάθε παραγράφου."
    117120
    118 #: D:\wamp\www\wordpress\wp-content\plugins\summy/inc/ui.php:78
    119 msgid "Score Weights"
     121#: D:\wamp\www\wordpress\wp-content\plugins\summy/inc/ui.php:77
     122#, fuzzy
     123msgid "Scores Weights"
    120124msgstr "Βάρη Βαθμολογιών"
    121125
    122 #: D:\wamp\www\wordpress\wp-content\plugins\summy/inc/ui.php:79
     126#: D:\wamp\www\wordpress\wp-content\plugins\summy/inc/ui.php:78
    123127msgid "TW"
    124128msgstr "TW"
    125129
    126 #: D:\wamp\www\wordpress\wp-content\plugins\summy/inc/ui.php:80
     130#: D:\wamp\www\wordpress\wp-content\plugins\summy/inc/ui.php:79
    127131msgid "PW"
    128132msgstr "PW"
    129133
    130 #: D:\wamp\www\wordpress\wp-content\plugins\summy/inc/ui.php:81
     134#: D:\wamp\www\wordpress\wp-content\plugins\summy/inc/ui.php:80
    131135msgid "KW"
    132136msgstr "KW"
    133137
    134 #: D:\wamp\www\wordpress\wp-content\plugins\summy/inc/ui.php:84
     138#: D:\wamp\www\wordpress\wp-content\plugins\summy/inc/ui.php:83
    135139msgid "Sentence(i) Score =  TW * T(i) + PW * P(i) + KW * K(i)."
    136140msgstr "Βαθμολογία Πρότασης(ι) =  TW * T(i) + PW * P(i) + KW * K(i)."
    137141
    138 #: D:\wamp\www\wordpress\wp-content\plugins\summy/inc/ui.php:85
     142#: D:\wamp\www\wordpress\wp-content\plugins\summy/inc/ui.php:84
    139143msgid ""
    140144"The T, P, K are each sentence's terms score, position score and keywords "
     
    143147"Οι μεταβλητές T, P, K είναι οι βαθμολογίες όρων, θέσης και τίτλου αντίστοιχα."
    144148
    145 #: D:\wamp\www\wordpress\wp-content\plugins\summy/inc/ui.php:86
     149#: D:\wamp\www\wordpress\wp-content\plugins\summy/inc/ui.php:85
    146150msgid "The TW, PW, KW are the scores weights."
    147151msgstr "Οι μεταβλητές TW, PW, KW είναι τα βάρη των βαθμολογιών."
    148152
    149 #: D:\wamp\www\wordpress\wp-content\plugins\summy/inc/ui.php:87
     153#: D:\wamp\www\wordpress\wp-content\plugins\summy/inc/ui.php:86
    150154msgid "The weights are unsigned float values, set a weight to 0 to disable it."
    151155msgstr "Τα βάρη πέρουν δεκαδικούς αριθμούς, για να απενεργοποίηση αφήστε τα 0."
    152156
    153 #: D:\wamp\www\wordpress\wp-content\plugins\summy/inc/ui.php:92
     157#: D:\wamp\www\wordpress\wp-content\plugins\summy/inc/ui.php:91
    154158msgid "Summarize"
    155159msgstr "Περίληψη"
  • summy/trunk/lang/summy.po

    r668154 r685226  
    22msgstr ""
    33"Project-Id-Version: WP-Summy v1.0\n"
    4 "POT-Creation-Date: 2013-02-15 01:56+0200\n"
    5 "PO-Revision-Date: 2013-02-15 01:56+0200\n"
     4"POT-Creation-Date: 2013-03-21 16:20+0200\n"
     5"PO-Revision-Date: 2013-03-21 16:20+0200\n"
    66"Last-Translator: \n"
    77"Language-Team: \n"
     
    3535msgstr ""
    3636
    37 #: D:\wamp\www\wordpress\wp-content\plugins\summy/inc/ui.php:16
     37#: D:\wamp\www\wordpress\wp-content\plugins\summy/inc/ui.php:15
    3838msgid "Summy: Excerpt Extraction"
    3939msgstr ""
    4040
    41 #: D:\wamp\www\wordpress\wp-content\plugins\summy/inc/ui.php:22
     41#: D:\wamp\www\wordpress\wp-content\plugins\summy/inc/ui.php:21
    4242msgid "English"
    4343msgstr ""
    4444
    45 #: D:\wamp\www\wordpress\wp-content\plugins\summy/inc/ui.php:22
     45#: D:\wamp\www\wordpress\wp-content\plugins\summy/inc/ui.php:21
    4646msgid "Greek"
    4747msgstr ""
    4848
    49 #: D:\wamp\www\wordpress\wp-content\plugins\summy/inc/ui.php:23
    50 msgid "News Articles"
     49#: D:\wamp\www\wordpress\wp-content\plugins\summy/inc/ui.php:22
     50msgid "Article"
    5151msgstr ""
    5252
    53 #: D:\wamp\www\wordpress\wp-content\plugins\summy/inc/ui.php:23
     53#: D:\wamp\www\wordpress\wp-content\plugins\summy/inc/ui.php:22
    5454msgid "Baxendale"
    5555msgstr ""
    5656
    57 #: D:\wamp\www\wordpress\wp-content\plugins\summy/inc/ui.php:31
     57#: D:\wamp\www\wordpress\wp-content\plugins\summy/inc/ui.php:30
    5858msgid "Laguage"
    5959msgstr ""
    6060
    61 #: D:\wamp\www\wordpress\wp-content\plugins\summy/inc/ui.php:39
     61#: D:\wamp\www\wordpress\wp-content\plugins\summy/inc/ui.php:38
    6262msgid "Output Rate"
    6363msgstr ""
    6464
     65#: D:\wamp\www\wordpress\wp-content\plugins\summy/inc/ui.php:42
     66msgid "Words Limits"
     67msgstr ""
     68
    6569#: D:\wamp\www\wordpress\wp-content\plugins\summy/inc/ui.php:43
    66 msgid "Words Limit"
     70msgid "Min"
    6771msgstr ""
    6872
    6973#: D:\wamp\www\wordpress\wp-content\plugins\summy/inc/ui.php:44
    70 msgid "Min"
    71 msgstr ""
    72 
    73 #: D:\wamp\www\wordpress\wp-content\plugins\summy/inc/ui.php:45
    7474msgid "Max"
    7575msgstr ""
    7676
    77 #: D:\wamp\www\wordpress\wp-content\plugins\summy/inc/ui.php:48
     77#: D:\wamp\www\wordpress\wp-content\plugins\summy/inc/ui.php:47
    7878msgid ""
    7979"The sentences that exceed the word limits will be ingored. 0 disables the "
     
    8181msgstr ""
    8282
    83 #: D:\wamp\www\wordpress\wp-content\plugins\summy/inc/ui.php:53
    84 msgid "Terms Score Method"
     83#: D:\wamp\www\wordpress\wp-content\plugins\summy/inc/ui.php:52
     84msgid "Terms Score"
    8585msgstr ""
    8686
    87 #: D:\wamp\www\wordpress\wp-content\plugins\summy/inc/ui.php:55
     87#: D:\wamp\www\wordpress\wp-content\plugins\summy/inc/ui.php:54
    8888msgid "TF-ISF"
    8989msgstr ""
    9090
    91 #: D:\wamp\www\wordpress\wp-content\plugins\summy/inc/ui.php:59
     91#: D:\wamp\www\wordpress\wp-content\plugins\summy/inc/ui.php:58
    9292msgid ""
    9393"Term Frequency Inverse Sentence Frequency, rewards the less used words in "
     
    9595msgstr ""
    9696
    97 #: D:\wamp\www\wordpress\wp-content\plugins\summy/inc/ui.php:64
    98 msgid "Position Score Method"
     97#: D:\wamp\www\wordpress\wp-content\plugins\summy/inc/ui.php:63
     98msgid "Position Score"
     99msgstr ""
     100
     101#: D:\wamp\www\wordpress\wp-content\plugins\summy/inc/ui.php:71
     102msgid "The Article method ranks higher top paragraphs/sentence."
    99103msgstr ""
    100104
    101105#: D:\wamp\www\wordpress\wp-content\plugins\summy/inc/ui.php:72
    102 msgid "The News Articles method ranks higher top paragraphs/sentence."
    103 msgstr ""
    104 
    105 #: D:\wamp\www\wordpress\wp-content\plugins\summy/inc/ui.php:73
    106106msgid ""
    107107"The Baxendale's method ranks higher the first and last sentences in a "
     
    109109msgstr ""
    110110
     111#: D:\wamp\www\wordpress\wp-content\plugins\summy/inc/ui.php:77
     112msgid "Scores Weights"
     113msgstr ""
     114
    111115#: D:\wamp\www\wordpress\wp-content\plugins\summy/inc/ui.php:78
    112 msgid "Score Weights"
     116msgid "TW"
    113117msgstr ""
    114118
    115119#: D:\wamp\www\wordpress\wp-content\plugins\summy/inc/ui.php:79
    116 msgid "TW"
     120msgid "PW"
    117121msgstr ""
    118122
    119123#: D:\wamp\www\wordpress\wp-content\plugins\summy/inc/ui.php:80
    120 msgid "PW"
    121 msgstr ""
    122 
    123 #: D:\wamp\www\wordpress\wp-content\plugins\summy/inc/ui.php:81
    124124msgid "KW"
    125125msgstr ""
    126126
    127 #: D:\wamp\www\wordpress\wp-content\plugins\summy/inc/ui.php:84
     127#: D:\wamp\www\wordpress\wp-content\plugins\summy/inc/ui.php:83
    128128msgid "Sentence(i) Score =  TW * T(i) + PW * P(i) + KW * K(i)."
    129129msgstr ""
    130130
    131 #: D:\wamp\www\wordpress\wp-content\plugins\summy/inc/ui.php:85
     131#: D:\wamp\www\wordpress\wp-content\plugins\summy/inc/ui.php:84
    132132msgid ""
    133133"The T, P, K are each sentence's terms score, position score and keywords "
     
    135135msgstr ""
    136136
    137 #: D:\wamp\www\wordpress\wp-content\plugins\summy/inc/ui.php:86
     137#: D:\wamp\www\wordpress\wp-content\plugins\summy/inc/ui.php:85
    138138msgid "The TW, PW, KW are the scores weights."
    139139msgstr ""
    140140
    141 #: D:\wamp\www\wordpress\wp-content\plugins\summy/inc/ui.php:87
     141#: D:\wamp\www\wordpress\wp-content\plugins\summy/inc/ui.php:86
    142142msgid "The weights are unsigned float values, set a weight to 0 to disable it."
    143143msgstr ""
    144144
    145 #: D:\wamp\www\wordpress\wp-content\plugins\summy/inc/ui.php:92
     145#: D:\wamp\www\wordpress\wp-content\plugins\summy/inc/ui.php:91
    146146msgid "Summarize"
    147147msgstr ""
  • summy/trunk/readme.txt

    r668154 r685226  
    55Requires at least: 3.5.0
    66Tested up to: 3.5.1
    7 Stable tag: 1.0.1
     7Stable tag: 1.0.2
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    4343Automatically generated excerpts don't summarize the post properly leaving guests guessing what the post is about.
    4444Summy will analyze your post's sentences and use the highest ranked that best describe your post, which could lead
    45 in better search engine results and more targetted audience for your blog. Summy's summaries are not perfect and you 
     45in better search engine results and more targetted audience for your blog. Summy's summaries are not perfect and you
    4646might also need to do some editing before publishing your content but they are a lot better than random 55 words...
    4747
     
    5757To improve system accuracy various NLP algorithms are used. The most
    5858hard to find or build are the stemming algorithms because they are build
    59 with specific language rules. If you find or can provide a stemming algorithm 
     59with specific language rules. If you find or can provide a stemming algorithm
    6060for another language please contact me.
    6161
     
    7171== Changelog ==
    7272
     73= 1.0.2 =
     74* Updated Core Library to [2.0.5](http://summy.komposta.net/index/changelog)
     75* * Fixed Bug in English Stemmer (Step 2 Case 'T')
     76* * Updated Greek Stemmer to improve performance in same cases up to 50%.
     77
    7378= 1.0.1 =
    7479* Fixed Typo in plugin name (omg)
  • summy/trunk/summy.php

    r668154 r685226  
    55  Plugin URI: http://www.komposta.net/article/wp-summy
    66  Description: Summy can generate excerpts for your posts by applying various algorithms for automatic summarization extraction.
    7   Version: 1.0.1
     7  Version: 1.0.2
    88  Author: Christodoulos Tsoulloftas
    99  Author URI: http://www.komposta.net
Note: See TracChangeset for help on using the changeset viewer.