A python package for flexible and transparent sentiment analysis.
Project description
Asent: Fast, flexible and transparent sentiment analysis
Inspired by Vader, made using SpaCy, transparent from the start.
Installation
Installing Asent is simple using pip:
pip install asent
There is no reason to update from GitHub as the version on pypi should always be the same of on GitHub.
Simple Example
The following shows a simple example of how you can quickly apply sentiment analysis using asent. For more on using asent see the usage guides.
import spacy
import asent
# load spacy pipeline
nlp = spacy.load("en_core_web_lg")
# add the rule-based sentiment model
nlp.add_pipe("asent_en_v1")
# try an example
text = "I am not very happy, but I am also not especially sad"
doc = nlp(text)
# visualize model prediction
asent.visualize(doc, style="prediction")
If we want to know even more
# visualize the analysis performed by the model:
asent.visualize(doc[:5], style="analysis")
📖 Documentation
Documentation | |
---|---|
🔧 Installation | Installation instructions for Asent |
📚 Usage Guides | Guides and instructions on how to use asent and its features. |
📰 News and changelog | New additions, changes and version history. |
🎛 Documentation | The detailed reference for Asents's API. Including function documentation |
💬 Where to ask questions
Type | |
---|---|
🚨 FAQ | FAQ |
🚨 Bug Reports | GitHub Issue Tracker |
🎁 Feature Requests & Ideas | GitHub Issue Tracker |
👩💻 Usage Questions | GitHub Discussions |
🗯 General Discussion | GitHub Discussions |
🎓 Citing this work
If you use this library in your research, please cite it using:
@inproceedings{asent2021,
title={Asent: Fast, flexible and transparent sentiment analysis},
author={Kenneth Enevoldsen},
year={2021}
}
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
asent-0.4.0.tar.gz
(235.4 kB
view details)
Built Distribution
asent-0.4.0-py2.py3-none-any.whl
(240.9 kB
view details)
File details
Details for the file asent-0.4.0.tar.gz
.
File metadata
- Download URL: asent-0.4.0.tar.gz
- Upload date:
- Size: 235.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a24e66993860dfed8e96d5d5c94ec93a19eb129b7a62ea2b663e1f2ed30e1e18 |
|
MD5 | b3c47ce2e3fecd7f6421a600e71b97b5 |
|
BLAKE2b-256 | da4400c881871a6a074d5e94e09fb2d956bed2208d367b186a6c13b8e79da684 |
File details
Details for the file asent-0.4.0-py2.py3-none-any.whl
.
File metadata
- Download URL: asent-0.4.0-py2.py3-none-any.whl
- Upload date:
- Size: 240.9 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e8795bf5c8a2a93fd2a69890b25493464958ee1534d877151d2409fa29ef2ae9 |
|
MD5 | 54cb7b0a63377ad2fc0648de312c1682 |
|
BLAKE2b-256 | 73a3c71eae85938a2a4dc3332327ca60a6c27b66eeda26c465c34d495898a36a |