This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/************************************************************************** | |
** | |
** Riemann-Siegel Formula for roots of Zeta(s) on critical line. | |
** | |
************************************************************************** | |
** Matthew Kehoe | |
** 07/31/2015 | |
** | |
** This program finds the roots of Zeta(s) using the well known Riemann- | |
** Siegel formula. The Riemann–Siegel theta function is approximated |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace App\Utilities\Search; | |
use App\Library\InverseDocumentFrequency; | |
use App\Utilities\Search\TfIdfFeatureFactory; | |
use NlpTools\Documents\TrainingSet; | |
/** |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace App\Utilities\Search; | |
use App\Utilities\Search\BM25; | |
use NlpTools\Tokenizers\WhitespaceTokenizer; | |
use NlpTools\Documents\TrainingSet; | |
use NlpTools\Documents\TokensDocument; | |
use NlpTools\Utils\Normalizers\Normalizer; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace App\Utilities; | |
use NlpTools\FeatureFactories\DataAsFeatures; | |
use NlpTools\Documents\TrainingSet; | |
class InverseDocumentFrequency | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace App\Library; | |
use NlpTools\Analysis\FreqDist; | |
class TermFrequency extends FreqDist | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace App\Utilities\Search; | |
use App\Library\TermFrequency; | |
use NlpTools\Documents\TrainingSet; | |
/** | |
* BM25 is a class for ranking documents against a query. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace App\Utilities; | |
/** | |
* http://en.wikipedia.org/wiki/Tversky_index | |
*/ | |
class TverskyIndex | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace App\Utilities; | |
/** | |
* http://en.wikipedia.org/wiki/Sørensen–Dice_coefficient | |
*/ | |
class DiceSimilarity | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace App\Utilities; | |
/** | |
* https://en.wikipedia.org/wiki/Overlap_coefficient | |
* AKA Szymkiewicz-Simpson coefficient | |
*/ | |
class OverlapCoefficient |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace App\Utilities; | |
/** | |
* This class implements the LevenshteinDistance distance of two strings or sets. | |
* This accepts strings of arbitrary lengths. | |
* | |
*/ |
NewerOlder