{"repo":"hiDaDeng/cntext","free":true,"listed":false,"github":"https://github.com/hiDaDeng/cntext","clone":"git clone https://github.com/hiDaDeng/cntext.git","description":"cntext is a Python library for social science text analysis, offering word frequency, sentiment, word embeddings, and semantic projection to measure constructs like attitudes and psychological states from Chinese text.","language":"Python","stars":458,"topics":["chinese","llm","nlp","sentiment-analysis","text-analysis","word2vec","social-science","text-mining","content-analysis","discourse-analysis"],"license":"MIT","category":"machine-learning","readme_excerpt":"Table of Contents - cntext: Text Analysis for Computational Social Science - Word Embedding Projection Approach (WEPA) - Installation - Minimal Runnable WEPA Example - WEPA Documentation and Reproducibility Files - Quick Start - Module Overview - 1. IO Module - 1.1 get dict list() - 1.2 Built-in YAML Dictionaries - 1.3 read yaml dict() - 1.4 detect encoding() - 1.5 get files(fformat) - 1.6 read pdf() - 1.7 read docx() - 1.8 read file() - 1.9 read files() - 1.10 extract mda() - 1.11 traditional2simple() - 1.12 fix text() - 1.13 fix contractions() - 1.14 clean text() - 2. Stats Module - 2.1 word count() - 2.2 readability() - 2.3 sentiment(text, diction, lang) - 2.4 sentiment by valence() - 2.5 word in context() - 2.6 epu() - 2.7 fepu() - 2.8 semantic brand score() - 2.9 Text Similarity - 2.10 word hhi() - 3. Plot Module - 3.1 matplotlib chinese() - 3.2 lexical dispersion plot1() - 3.3 lexical dispersion plot2() - 4. Model Module - 4.1 Word2Vec() - 4.2 GloVe() - 4.3 evaluate similarity() - 4.4 evaluate analogy() - 4.5 SoPmi() - 4.6 load w2v() - 4.7 glove2word2vec() - 4.8 Notes on Embedding Models - 4.9 expand dictionary() - 5. Mind Module - 5.1 semantic centroid(wv, words) - 5.2 generate concept axis(wv, poswords, negwords) - 5.3 wepa(wv, text, poswords, negwords, lang, cosine) - 5.4 project text(wv, text, axis, lang, cosine) - 5.5 sematic projection() - 5.6 project word() - 5.7 sematic distance() - 5.8 divergent association task() - 5.9 discursive diversity score() - 5.10 procr","default_branch":null,"files":null,"tree":[],"storefront":"/r/hiDaDeng","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/hiDaDeng/cntext/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}