https://github.com/piedweb/text-analyzer
https://github.com/piedweb/text-analyzer
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/piedweb/text-analyzer
- Owner: PiedWeb
- License: mit
- Created: 2023-01-03T15:19:25.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2025-04-04T06:35:51.000Z (over 1 year ago)
- Last Synced: 2025-04-22T06:58:48.706Z (about 1 year ago)
- Language: PHP
- Size: 32.2 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Text Analyzer
[](https://github.com/PiedWeb/TextAnalyzer/tags)
[](LICENSE)
[](https://github.com/PiedWeb/TextAnalyzer/actions)
[](https://scrutinizer-ci.com/g/PiedWeb/TextAnalyzer)
[](https://codecov.io/gh/PiedWeb/TextAnalyzer/branch/main)
[](https://shepherd.dev/github/PiedWeb/TextAnalyzer)
[](https://packagist.org/packages/piedweb/text-analyzer)
Semantic Analysis : Extract Expressions from a text and order it by density.
## Install
Via [Packagist](https://img.shields.io/packagist/dt/piedweb/text-analyzer.svg?style=flat)
```bash
$ composer require piedweb/text-analyzer
```
## Usage
```php
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
```bash
$ composer test
```
## Contributing
Please see [contributing](https://dev.piedweb.com/contributing)
## Credits
- [PiedWeb](https://piedweb.com)
- [All Contributors](https://github.com/PiedWeb/:package_skake/graphs/contributors)
## License
The MIT License (MIT). Please see [License File](LICENSE) for more information.