piedweb / text-analyzer
Semantic Analysis : Extract Expressions from a text and order it by density.
Installs: 21 081
Dependents: 2
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 0
Open Issues: 0
Requires
- php: >=8.3
- fylax/forceutf8: ^3.0
- dev-main
- 0.1.804
- 0.1.803
- 0.1.802
- 0.1.801
- 0.1.800
- 0.1.799
- 0.1.798
- 0.1.797
- 0.1.796
- 0.1.795
- 0.1.794
- 0.1.793
- 0.1.792
- 0.1.791
- 0.1.790
- 0.1.789
- 0.1.788
- 0.1.787
- 0.1.786
- 0.1.785
- 0.1.784
- 0.1.783
- 0.1.782
- 0.1.781
- 0.1.78
- 0.1.77
- 0.1.76
- 0.1.75
- 0.1.74
- 0.1.73
- 0.1.72
- 0.1.71
- 0.1.70
- 0.1.69
- 0.1.68
- 0.1.67
- 0.1.66
- 0.1.65
- 0.1.64
- 0.1.63
- 0.1.62
- 0.1.61
- 0.1.60
- 0.1.59
- 0.1.58
- 0.1.57
- 0.1.56
- 0.1.55
- 0.1.54
- 0.1.53
- 0.1.52
- 0.1.51
- 0.1.50
- 0.1.49
- 0.1.48
- 0.1.47
- 0.1.46
- 0.1.45
- 0.1.44
- 0.1.43
- 0.1.42
- 0.1.41
- 0.1.40
- 0.1.35
- 0.1.34
- 0.1.33
- 0.1.32
- 0.1.30
- 0.1.24
- 0.1.23
This package is auto-updated.
Last update: 2024-10-30 01:53:46 UTC
README
Text Analyzer
Semantic Analysis : Extract Expressions from a text and order it by density.
Install
Via Packagist
$ composer require piedweb/text-analyzer
Usage
use \PiedWeb\ExpressionHarvester\MultiAnalyzer; $test = new MultiAnalyzer($onlyInSentence = true, $expressionMaxWords = 5 ); $result = $test->addContent("Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed..."); $result->getExpressions(); $results = $test->exec(); // @return \PiedWeb\TextAnalyzer\Analysis // same methods except in get expression, the value for each expression is not anymore his number
Testing
$ composer test
Contributing
Please see contributing
Credits
License
The MIT License (MIT). Please see License File for more information.