Skip to main content

A python package for flexible and transparent sentiment analysis.

Project description

Asent: Fast, flexible and transparent sentiment analysis

PyPI version python version Code style: black github actions pytest github actions docs github coverage CodeFactor pip downloads

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


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.2.0.tar.gz (235.1 kB view details)

Uploaded Source

Built Distribution

asent-0.2.0-py2.py3-none-any.whl (241.2 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file asent-0.2.0.tar.gz.

File metadata

  • Download URL: asent-0.2.0.tar.gz
  • Upload date:
  • Size: 235.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.9.12

File hashes

Hashes for asent-0.2.0.tar.gz
Algorithm Hash digest
SHA256 7316b55520995a6b38039c6259a767db68ce7bfff5e728c1cd8e211253fcb086
MD5 ebfb728e48de31c38910cec774237e7e
BLAKE2b-256 12df075686bbc58e4e7d24ec82f9c40ae93a9f72734259bfc12f6e168ff4f3a6

See more details on using hashes here.

File details

Details for the file asent-0.2.0-py2.py3-none-any.whl.

File metadata

  • Download URL: asent-0.2.0-py2.py3-none-any.whl
  • Upload date:
  • Size: 241.2 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.9.12

File hashes

Hashes for asent-0.2.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 b36a96e080e629f460d5d25eb777277dca7ed2581406e4d500b20d0444291b05
MD5 b3e9939515450938a643f4ebd9b3b81f
BLAKE2b-256 6a0fe8bd790dd09c7fa350ece64e36f89350c3b6f1e4c3f7cf1bffc56bf62f1d

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page