{"id":15284125,"url":"https://github.com/sloev/sentimental-onix","last_synced_at":"2025-07-04T09:06:55.860Z","repository":{"id":142934697,"uuid":"614471376","full_name":"sloev/sentimental-onix","owner":"sloev","description":"sentiment analysis for spacy pipeline in python","archived":false,"fork":false,"pushed_at":"2024-10-31T10:01:58.000Z","size":25489,"stargazers_count":3,"open_issues_count":2,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-06-16T19:45:01.642Z","etag":null,"topics":["onnx","sentiment-analysis","spacy","spacy-pipeline"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sloev.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null},"funding":{"github":["sloev"],"custom":["https://www.buymeacoffee.com/sloev"]}},"created_at":"2023-03-15T16:44:14.000Z","updated_at":"2024-10-29T09:25:01.000Z","dependencies_parsed_at":"2025-04-12T23:25:00.992Z","dependency_job_id":"ee2e7510-1840-4644-9d2b-66711d7995b3","html_url":"https://github.com/sloev/sentimental-onix","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/sloev/sentimental-onix","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sloev%2Fsentimental-onix","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sloev%2Fsentimental-onix/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sloev%2Fsentimental-onix/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sloev%2Fsentimental-onix/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sloev","download_url":"https://codeload.github.com/sloev/sentimental-onix/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sloev%2Fsentimental-onix/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263480867,"owners_count":23473164,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["onnx","sentiment-analysis","spacy","spacy-pipeline"],"created_at":"2024-09-30T14:49:59.999Z","updated_at":"2025-07-04T09:06:55.813Z","avatar_url":"https://github.com/sloev.png","language":"Python","funding_links":["https://github.com/sponsors/sloev","https://www.buymeacoffee.com/sloev"],"categories":["Libraries"],"sub_categories":["Books"],"readme":"![spacy syllables](https://raw.githubusercontent.com/sloev/sentimental-onix/master/.github/onix.webp) \u003ca href=\"https://www.buymeacoffee.com/sloev\" target=\"_blank\"\u003e\u003cimg src=\"https://cdn.buymeacoffee.com/buttons/default-pink.png\" alt=\"Buy Me A Coffee\" height=\"51px\" width=\"217px\"\u003e\u003c/a\u003e\n\n![example workflow](https://github.com/sloev/sentimental-onix/actions/workflows/test.yml/badge.svg) [![Latest Version](https://img.shields.io/pypi/v/sentimental-onix.svg)](https://pypi.python.org/pypi/sentimental-onix) [![Python Support](https://img.shields.io/pypi/pyversions/sentimental-onix.svg)](https://pypi.python.org/pypi/sentimental-onix)\n\n# Sentimental Onix\n\nSentiment Analysis using [onnx](https://github.com/onnx/onnx) for python with a focus on being [spacy](https://github.com/explosion/spaCy) compatible *and EEEEEASY to use*.\n\n**Features**\n- [x] English sentiment analysis\n- [x] Spacy pipeline component\n- [x] Sentiment model downloading from github\n\n## Install\n\n```bash\n$ pip install sentimental_onix\n# download english sentiment model\n$ python -m sentimental_onix download en\n```\n\n## Usage\n\n```python\nimport spacy\nfrom sentimental_onix import pipeline\n\nnlp = spacy.load(\"en_core_web_sm\")\nnlp.add_pipe(\"sentencizer\")\nnlp.add_pipe(\"sentimental_onix\", after=\"sentencizer\")\n\nsentences = [\n    (sent.text, sent._.sentiment)\n    for doc in nlp.pipe(\n        [\n            \"i hate pasta on tuesdays\",\n            \"i like movies on wednesdays\",\n            \"i find your argument ridiculous\",\n            \"soda with straws are my favorite\",\n        ]\n    )\n    for sent in doc.sents\n]\n\nassert sentences == [\n    (\"i hate pasta on tuesdays\", \"Negative\"),\n    (\"i like movies on wednesdays\", \"Positive\"),\n    (\"i find your argument ridiculous\", \"Negative\"),\n    (\"soda with straws are my favorite\", \"Positive\"),\n]\n\n```\n\n## Benchmark\n\n|         library|   result|\n|----------------|---------|\n|   spacytextblob|    58.9%|\n|sentimental_onix|      69%|\n \nSee [./benchmark/](./benchmark/) for info\n\n## Dev setup / testing\n\n\u003cdetails\u003e\u003csummary\u003eexpand\u003c/summary\u003e\n\n\n### Install\n\ninstall the dev package and pyenv versions\n\n```bash\n$ pip install -e \".[dev]\"\n$ python -m spacy download en_core_web_sm\n$ python -m sentimental_onix download en\n```\n\n### Run tests\n\n```bash\n$ black .\n$ pytest -vvl\n```\n\n\n### Packaging and publishing\n\n```bash\npython3 -m pip install --upgrade build twine\npython3 -m build\npython3 -m twine upload dist/*\n```\n\n\u003c/details\u003e","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsloev%2Fsentimental-onix","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsloev%2Fsentimental-onix","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsloev%2Fsentimental-onix/lists"}