#192 · Primary category: NLP Tools & Text Processing
cnsenti
中文情感分析库(Chinese Sentiment))可对文本进行情绪分析、正负情感分析。Text analysis, supporting multiple methods including word count, readability, document similarity, sentiment analysis, Word2Vec .
Project last updated:12/09/22
GitHub Stars
590
Forks
85
Contributors
1
License
MIT
Why we included this project
Chinese text sentiment analysis often means either training a model or calling an API, but cnsenti takes a simpler route: it counts sentiment words from built-in lexicons. The Sentiment class uses the Hownet dictionary to tally positive and negative terms, and its sentiment_calculate method also handles degree adverbs and negation words that change the meaning. The Emotion class draws on the Dalian University of Technology emotion ontology to count seven emotion categories like joy, sadness, anger, and fear. You can supply your own positive and negative word lists as plain text files, which helps when the default dictionaries miss domain-specific terms. One thing to know: the project is no longer maintained; its functionality has moved into the cntext library, so treat cnsenti as a compact reference or a starting point rather than something to build on long-term.
Articles for this project
No articles for this project yet.
To suggest a topic or contribute an article, contact us.
Related projects in this category
flair
A very simple framework for state-of-the-art Natural Language Processing (NLP)
compromise
modest natural-language processing
tokenizers
💥 Fast State-of-the-Art Tokenizers optimized for Research and Production
CoreNLP
CoreNLP: A Java suite of core NLP tools for tokenization, sentence segmentation, NER, parsing, coreference, sentiment analysis, etc.
Chinese-Word-Vectors
100+ Chinese Word Vectors 上百种预训练中文词向量