{"id":22089914,"url":"https://github.com/dhchenx/cn-sentiment-measures","last_synced_at":"2025-03-23T22:49:46.925Z","repository":{"id":62563216,"uuid":"435224733","full_name":"dhchenx/cn-sentiment-measures","owner":"dhchenx","description":"A toolkit for estimating Chinese sentiment scores with multiple measures. ","archived":false,"fork":false,"pushed_at":"2021-12-05T17:42:56.000Z","size":404,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-04T09:39:03.088Z","etag":null,"topics":["chinese-sentiment-analysis","measures","sentiment-score","text-emotion-detection"],"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/dhchenx.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-12-05T16:50:54.000Z","updated_at":"2022-02-14T09:27:17.000Z","dependencies_parsed_at":"2022-11-03T15:45:23.974Z","dependency_job_id":null,"html_url":"https://github.com/dhchenx/cn-sentiment-measures","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dhchenx%2Fcn-sentiment-measures","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dhchenx%2Fcn-sentiment-measures/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dhchenx%2Fcn-sentiment-measures/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dhchenx%2Fcn-sentiment-measures/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dhchenx","download_url":"https://codeload.github.com/dhchenx/cn-sentiment-measures/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245181549,"owners_count":20573718,"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":["chinese-sentiment-analysis","measures","sentiment-score","text-emotion-detection"],"created_at":"2024-12-01T02:14:42.106Z","updated_at":"2025-03-23T22:49:46.888Z","avatar_url":"https://github.com/dhchenx.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Chinese Sentiment Measures \n\nA toolkit for estimating Chinese sentiment scores with multiple measures. \n\n```pip\npip install cn-sentiment-measures\n```\n\n## Measures\n1. Absolute Proportional Difference - APD. Bounds: [-1, 1]\n2. Relative Proportional Difference - RPD. Bounds: [-1, 1]\n3. Logit scale - LC.  Bounds: [-infinity, +infinity]\n\nImproved versions of the above measures by integrating degree words are marked with `_with_degree` in the toolkit. \n\n## Examples\n```python\n\nfrom cn_sentiment_measures.sentiment_measures import SentimentMeasures\n\nsm = SentimentMeasures()\n\nword_list=[\"我\",\"今天\",\"很\",\"高兴\"]\n\nprint(\"Here are measure values with normal measures!\")\nprint('APD = ',sm.APD(word_list))\nprint('RPD = ',sm.RPD(word_list))\nprint('LS = ',sm.LS(word_list))\n\nprint()\nprint(\"Here are measure values optimized by using adverb words!\")\nprint('APD* = ',sm.APD_with_degree(word_list))\nprint('RPD* = ',sm.RPD_with_degree(word_list))\nprint('LS* = ',sm.LS_with_degree(word_list))\n\n```\n\n## License\nThe project is provided by [Donghua Chen](https://github.com/dhchenx). \n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdhchenx%2Fcn-sentiment-measures","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdhchenx%2Fcn-sentiment-measures","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdhchenx%2Fcn-sentiment-measures/lists"}