معرفی شرکت ها


asent-0.7.1


Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر

توضیحات

A python package for flexible and transparent sentiment analysis.
ویژگی مقدار
سیستم عامل -
نام فایل asent-0.7.1
نام asent
نسخه کتابخانه 0.7.1
نگهدارنده []
ایمیل نگهدارنده []
نویسنده -
ایمیل نویسنده Kenneth Enevoldsen <kennethcenevoldsen@gmail.com>
آدرس صفحه اصلی -
آدرس اینترنتی https://pypi.org/project/asent/
مجوز MIT License Copyright (c) 2021 Kenneth Enevoldsen Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
<a href="https://github.com/kennethenevoldsen/asent"><img src="https://github.com/KennethEnevoldsen/asent/blob/main/docs/img/logo_black_font.png?raw=true" width="300" align="right" /></a> # Asent: Fast, flexible and transparent sentiment analysis [![PyPI version](https://badge.fury.io/py/asent.svg)](https://pypi.org/project/asent/) [![python version](https://img.shields.io/badge/Python-%3E=3.8-blue)](https://github.com/kennethenevoldsen/asent) [![Code style: black](https://img.shields.io/badge/Code%20Style-Black-black)](https://black.readthedocs.io/en/stable/the_black_code_style/current_style.html) [![github actions pytest](https://github.com/kennethenevoldsen/asent/actions/workflows/tests.yml/badge.svg)](https://github.com/kennethenevoldsen/asent/actions) [![github actions docs](https://github.com/kennethenevoldsen/asent/actions/workflows/documentation.yml/badge.svg)](https://kennethenevoldsen.github.io/asent/) ![github coverage](https://img.shields.io/endpoint?url=https://gist.githubusercontent.com/KennethEnevoldsen/95471fd640b6c1c09717c5f88e2e9fae/raw/badge-asent-pytest-coverage.json) [![CodeFactor](https://www.codefactor.io/repository/github/kennethenevoldsen/asent/badge)](https://www.codefactor.io/repository/github/kennethenevoldsen/asent) [![pip downloads](https://img.shields.io/pypi/dm/asent.svg)](https://pypi.org/project/asent/) Asent is a rule-based sentiment analysis library for Python made using [SpaCy](https://spacy.io). It is inspired by [Vader](https://github.com/cjhutto/vaderSentiment), but uses a more modular ruleset, that allows the user to change e.g. the method for finding negations. Furthermore, it includes visualizers to visualize model predictions, making the model easily interpretable. ## 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]. ```python import spacy import asent # create spacy pipeline nlp = spacy.blank('en') nlp.add_pipe('sentencizer') # 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) # print polarity of document, scaled to be between -1, and 1 print(doc._.polarity) # neg=0.0 neu=0.631 pos=0.369 compound=0.7526 ``` Naturally, a simple score can be quite unsatisfying, thus Asent implements a series of visualizer to interpret the results: ```python # visualize model prediction asent.visualize(doc, style="prediction") ``` <img src="https://raw.githubusercontent.com/KennethEnevoldsen/asent/main/docs/img/model_pred.png" width="500" /> If we want to know why the model comes the result it does we can use the `analysis` style: ```python # visualize the analysis performed by the model: asent.visualize(doc[:5], style="analysis") ``` <img src="https://raw.githubusercontent.com/KennethEnevoldsen/asent/main/docs/img/model_analysis.png" width="700" /> Where the value in the parenthesis (2.7) indicates the human-rating of the word, while the value outside the parenthesis indicates the value accounting for the negation. Asent also accounts for contrastive conjugations (e.g. but), casing, emoji's and punctuations. For more on how the model works check out the [usage guide]. # 📖 Documentation | Documentation | | | -------------------------- | ----------------------------------------------------------------------------------------------------------------------- | | 🔧 **[Installation]** | Installation instructions for Asent | | 📚 **[Usage Guides]** | Guides and instructions on how to use asent and its features. It also gives short introduction to how the models works. | | 📰 **[News and changelog]** | New additions, changes and version history. | | 🎛 **[Documentation]** | The detailed reference for Asents's API. Including function documentation | [Documentation]: https://kennethenevoldsen.github.io/asent/index.html [Installation]: https://kennethenevoldsen.github.io/asent/installation.html [usage guides]: https://kennethenevoldsen.github.io/asent/introduction.html [News and changelog]: https://kennethenevoldsen.github.io/asent/news.html # 💬 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] | [FAQ]: https://kennethenevoldsen.github.io/asent/faq.html [github issue tracker]: https://github.com/kennethenevoldsen/asent/issues [github discussions]: https://github.com/kennethenevoldsen/asent/discussions


نیازمندی

مقدار نام
<3.6.0,>=3.0.0 spacy
<4.0.0,>=3.5.0 matplotlib
<3.8.0,>=3.6.7 nltk
>=1.1.0 dacy
<5.4.0,>=5.3.0 sphinx
==2022.12.7 furo
<0.5.2,>=0.5.1 sphinx-copybutton
<0.7.4,>=0.7.3 sphinxext-opengraph
<0.3.1,>=0.3.0 sphinx-design
<1.17.0,>=0.6.0 myst-nb
==22.12.0 black
<2.21.0,>=2.20.0 pre-commit
==0.0.191 ruff
==0.991 mypy
<7.3.0,>=7.1.3 pytest
<3.0.1,>=3.0.0 pytest-cov
<1.1.0,>=1.0.0 jupyter


زبان مورد نیاز

مقدار نام
>=3.8 Python


نحوه نصب


نصب پکیج whl asent-0.7.1:

    pip install asent-0.7.1.whl


نصب پکیج tar.gz asent-0.7.1:

    pip install asent-0.7.1.tar.gz