Changeset 700744
- Timestamp:
- 04/20/2013 01:06:33 PM (13 years ago)
- Location:
- summy/trunk
- Files:
-
- 13 edited
-
lib/Summy/Core.php (modified) (4 diffs)
-
lib/Summy/Filter/En/Stemmer.php (modified) (2 diffs)
-
lib/Summy/Filter/En/StopWords.php (modified) (2 diffs)
-
lib/Summy/Filter/En/Text.php (modified) (2 diffs)
-
lib/Summy/Filter/Gr/Stemmer.php (modified) (2 diffs)
-
lib/Summy/Filter/Gr/StopWords.php (modified) (2 diffs)
-
lib/Summy/Filter/Gr/Text.php (modified) (2 diffs)
-
lib/Summy/Filter/StopWords.php (modified) (2 diffs)
-
lib/Summy/Filter/WordLength.php (modified) (2 diffs)
-
lib/Summy/Score/Position.php (modified) (2 diffs)
-
lib/Summy/Score/Term.php (modified) (2 diffs)
-
readme.txt (modified) (2 diffs)
-
summy.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
summy/trunk/lib/Summy/Core.php
r685224 r700744 3 3 /** 4 4 * @package Summy 5 * @version $Id: Core.php 128 2013-03-17 23:44:07Z Tefra $6 5 * @author Christodoulos Tsoulloftas 7 6 * @copyright Copyright 2011-2013, http://www.komposta.net … … 243 242 $i = 0; 244 243 $total = ceil(($this->config['rate'] / 100) * $this->totalSentences); 245 $indexes = array_keys($this->sentenceScores);246 244 //Grab the top x sentences 247 while($i < $total) 248 { 249 $this->summarySentences[] = array_shift($indexes); 245 foreach($this->sentenceScores AS $index => $score) 246 { 247 if($score == 0 || $total == $i) 248 { 249 break; 250 } 250 251 $i++; 252 $this->summarySentences[] = $index; 253 } 254 255 //Return false if no senteces made it to the summary 256 if(empty($this->summarySentences)) 257 { 258 return false; 251 259 } 252 260 … … 255 263 return true; 256 264 } 257 else 258 { 259 return false; 260 } 265 return false; 261 266 } 262 267 … … 408 413 } 409 414 } 410 411 ?> -
summy/trunk/lib/Summy/Filter/En/Stemmer.php
r685224 r700744 7 7 * 8 8 * @package Summy 9 * @version $Id: Stemmer.php 128 2013-03-17 23:44:07Z Tefra $10 9 * @author Christodoulos Tsoulloftas 11 10 * @copyright Copyright 2011-2013, http://www.komposta.net … … 377 376 } 378 377 } 379 380 ?> -
summy/trunk/lib/Summy/Filter/En/StopWords.php
r664156 r700744 3 3 /** 4 4 * @package Summy 5 * @version $Id: StopWords.php 93 2013-02-04 18:26:25Z Tefra $6 5 * @author Christodoulos Tsoulloftas 7 6 * @copyright Copyright 2011-2013, http://www.komposta.net … … 562 561 ); 563 562 } 564 565 ?> -
summy/trunk/lib/Summy/Filter/En/Text.php
r685224 r700744 3 3 /** 4 4 * @package Summy 5 * @version $Id: Text.php 128 2013-03-17 23:44:07Z Tefra $6 5 * @author Christodoulos Tsoulloftas 7 6 * @copyright Copyright 2011-2013, http://www.komposta.net … … 83 82 } 84 83 } 85 86 ?> -
summy/trunk/lib/Summy/Filter/Gr/Stemmer.php
r685224 r700744 19 19 * 20 20 * @package Summy 21 * @version $Id: Stemmer.php 112 2013-03-06 21:56:52Z Tefra $22 21 * @author Christodoulos Tsoulloftas 23 22 * @copyright Copyright 2011-2013, http://www.komposta.net … … 512 511 } 513 512 } 514 515 ?> -
summy/trunk/lib/Summy/Filter/Gr/StopWords.php
r664156 r700744 3 3 /** 4 4 * @package Summy 5 * @version $Id: StopWords.php 93 2013-02-04 18:26:25Z Tefra $6 5 * @author Christodoulos Tsoulloftas 7 6 * @copyright Copyright 2011-2013, http://www.komposta.net … … 653 652 ); 654 653 } 655 656 ?> -
summy/trunk/lib/Summy/Filter/Gr/Text.php
r664156 r700744 3 3 /** 4 4 * @package Summy 5 * @version $Id: Text.php 103 2013-02-04 21:56:04Z Tefra $6 5 * @author Christodoulos Tsoulloftas 7 6 * @copyright Copyright 2011-2013, http://www.komposta.net … … 86 85 } 87 86 } 88 89 ?> -
summy/trunk/lib/Summy/Filter/StopWords.php
r664156 r700744 3 3 /** 4 4 * @package Summy 5 * @version $Id: StopWords.php 88 2013-02-04 13:25:53Z Tefra $6 5 * @author Christodoulos Tsoulloftas 7 6 * @copyright Copyright 2011-2013, http://www.komposta.net … … 36 35 } 37 36 } 38 39 ?> -
summy/trunk/lib/Summy/Filter/WordLength.php
r664156 r700744 3 3 /** 4 4 * @package Summy 5 * @version $Id: WordLength.php 88 2013-02-04 13:25:53Z Tefra $6 5 * @author Christodoulos Tsoulloftas 7 6 * @copyright Copyright 2011-2013, http://www.komposta.net … … 37 36 } 38 37 } 39 40 ?> -
summy/trunk/lib/Summy/Score/Position.php
r685224 r700744 3 3 /** 4 4 * @package Summy 5 * @version $Id: Position.php 117 2013-03-16 16:37:14Z Tefra $6 5 * @author Christodoulos Tsoulloftas 7 6 * @copyright Copyright 2011-2013, http://www.komposta.net … … 73 72 } 74 73 } 75 76 ?> -
summy/trunk/lib/Summy/Score/Term.php
r685224 r700744 3 3 /** 4 4 * @package Summy 5 * @version $Id: Term.php 125 2013-03-16 17:49:26Z Tefra $6 5 * @author Christodoulos Tsoulloftas 7 6 * @copyright Copyright 2011-2013, http://www.komposta.net … … 199 198 } 200 199 } 201 202 ?> -
summy/trunk/readme.txt
r685226 r700744 5 5 Requires at least: 3.5.0 6 6 Tested up to: 3.5.1 7 Stable tag: 1.0. 27 Stable tag: 1.0.3 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 71 71 == Changelog == 72 72 73 = 1.0.3 = 74 * Fixed bug including null scored sentences in the summary to reach the output rate. 75 73 76 = 1.0.2 = 74 77 * 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 78 78 79 = 1.0.1 = -
summy/trunk/summy.php
r685226 r700744 5 5 Plugin URI: http://www.komposta.net/article/wp-summy 6 6 Description: Summy can generate excerpts for your posts by applying various algorithms for automatic summarization extraction. 7 Version: 1.0. 27 Version: 1.0.3 8 8 Author: Christodoulos Tsoulloftas 9 9 Author URI: http://www.komposta.net
Note: See TracChangeset
for help on using the changeset viewer.