Download the PHP package otifsolutions/php-sentiment-analysis without Composer
On this page you can find all versions of the php package otifsolutions/php-sentiment-analysis. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download otifsolutions/php-sentiment-analysis
More information about otifsolutions/php-sentiment-analysis
Files in otifsolutions/php-sentiment-analysis
Download otifsolutions/php-sentiment-analysis
More information about otifsolutions/php-sentiment-analysis
Files in otifsolutions/php-sentiment-analysis
Vendor otifsolutions
Package php-sentiment-analysis
Short Description Php Sentiment Analysis allows user to analyze sentiments from a text statement
License MIT
Package php-sentiment-analysis
Short Description Php Sentiment Analysis allows user to analyze sentiments from a text statement
License MIT
Please rate this library. Is it a good library?
Informations about the package php-sentiment-analysis
Php Sentiment Analysis
Install via Composer
Using Composer (Recommended)
You can run the following command in the root directory of your project:
Usage
-
Php Sentiment Analysis allows to analyze a text statement if it is positive or negative. e.g. comment on any post.
- Where $value is the statement to be analyzed.
-
Statement may contain labels, emojis and negators.
- Labels are words statement contains e.g.
corruption
,boycott
. - Emoji e.g.
😍
,💖
. - Negators are words that negate something e.g.
doesnt
,not
.
- Labels are words statement contains e.g.
-
We use following methods
getTokens
-
This method separate the words from the given statement and returns all words.
getDataSet
- This method has dataset.
- Labels, emojis and negators already stored in the dataset, which have a positive or negative value.
- For example
"fun": 4, "funeral": -1,
This example demonstrates the usage of Php Sentiment Analysis
,
Option | Description |
---|---|
score |
Positive or negative value after analysis of given statement. |
tokens |
Tokens are the separated words in a Statement. |
comparative |
Value received when score is divided by count of token. |
calculation |
Words in an array with a positive or negative value, if the word exists in dataset the value will be positive or negative otherwise value will be zero. |
positive |
Shows all positive words from the statement. |
negative |
shows all negative words from the statement. |
All versions of php-sentiment-analysis with dependencies
PHP Build Version
Package Version
No informations.
The package otifsolutions/php-sentiment-analysis contains the following files
Loading the files please wait ....