Metadata-Version: 2.1
Name: SentiLeak
Version: 0.1.0
Summary: A lexicon-based sentiment analysis for Spanish.
Home-page: https://github.com/FernanOrtega
Author: FernanOrtega
Author-email: f.ortega.gallego@gmail.com
License: License :: OSI Approved :: GNU General Public License v3 (GPLv3)
Platform: UNKNOWN
Description-Content-Type: text/markdown
Requires-Dist: SpaCy (<2.3,>=2.2.3)
Requires-Dist: numpy (<1.19,>=1.18.1)
Requires-Dist: snowballstemmer (<2.1,>=2.0.0)

![CI new dev push](https://github.com/FernanOrtega/SentiLeak/workflows/CI%20for%20a%20new%20dev%20push/badge.svg?branch=dev&event=push)

![CD approved PR dev to master](https://github.com/FernanOrtega/SentiLeak/workflows/CD%20after%20an%20approved%20PR%20from%20dev%20to%20master/badge.svg?branch=master&event=pull_request&event=push)

# SentiLeak
This is a lexicon-based sentiment analysis package for Python.

For now, it only supports Spanish but it will be extended to support other languages like English, Portuguese, Catalan or French.

## Installation
SentiLeak can be installed with pip:
```
pip install SentiLeak
```


## Usage
To use this package, it is only necessary to import ``SentiLeak`` class and call the method ``compute_sentiment``.

This is an example of usage:

````bash
>>> from sentileak import SentiLeak
>>> sent_analysis = SentiLeak()
>>> text = "La decisión del árbitro fue muy perjudicial para el equipo local. El partido estaba empatado para ambos equipos. Al final, el portero hizo una gran intervención que salvó a su equipo."
>>> sent_analysis.compute_sentiment(text)
{
	'per_sentence_sentiment': [{
		'position': 0,
		'text': 'La decisión del árbitro fue muy perjudicial para el equipo local.',
		'score': -3.0
	}, {
		'position': 1,
		'text': 'El partido estaba empatado para ambos equipos.',
		'score': 0.0
	}, {
		'position': 2,
		'text': 'Al final, el portero hizo una gran intervención que salvó a su equipo.',
		'score': 3.0
	}],
	'global_sentiment': 0.0
}
````

## Contributor
The main (and the only) contributor is <a href="https://github.com/FernanOrtega" target="_blank">FernanOrtega</a> 

This project has also the support of <a href="https://www.opileak.es" target="_blank">Opileak</a>


