cntext
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.
File Explorer
Download Latest Version (.zip)- profiles_settings.xml
- .gitignore
- .name
- cntext.iml
- encodings.xml
- misc.xml
- modules.xml
- vcs.xml
- __init__.cpython-311.pyc
- __init__.cpython-312.pyc
- glove.cpython-312.pyc
- hello.cpython-312.pyc
- io.cpython-311.pyc
- io.cpython-312.pyc
- llm.cpython-312.pyc
- mind.cpython-311.pyc
- mind.cpython-312.pyc
- model.cpython-311.pyc
- model.cpython-312.pyc
- plot.cpython-311.pyc
- plot.cpython-312.pyc
- stats.cpython-311.pyc
- stats.cpython-312.pyc
- SourceHanSansCN-Medium.ttf
- __init__.cpython-312.pyc
- dict.cpython-312.pyc
- file.cpython-312.pyc
- mda.cpython-312.pyc
- utils.cpython-312.pyc
- .DS_Store
- en_common_LoughranMcDonald.yaml
- en_common_LSD2015.yaml
- en_common_NRC.yaml
- en_common_SentiWS.yaml
- en_valence_Concreteness.yaml
- enzh_common_AdvConj.yaml
- enzh_common_StopWords.yaml
- zh_common_Digitalization.yaml
- zh_common_DUTIR.yaml
- zh_common_EPU.yaml
- zh_common_FEPU.yaml
- zh_common_FinacialFormalUnformal.yaml
- zh_common_FinanceSenti.yaml
- zh_common_FLS.yaml
- zh_common_HowNet.yaml
- zh_common_LoughranMcDonald.yaml
- zh_common_NTUSD.yaml
- zh_common_RhetoricalNationalism.yaml
- zh_common_TsinghuaPraiseDegrade.yaml
- zh_valence_ChineseEmoBank.yaml
- zh_valence_SixSemanticDimensionDatabase.yaml
- .DS_Store
- __init__.py
- dict.py
- file.py
- mda.py
- utils.py
- __init__.cpython-312.pyc
- fasttext.cpython-312.pyc
- glove.cpython-312.pyc
- sopmi.cpython-312.pyc
- utils.cpython-312.pyc
- w2v.cpython-312.pyc
- .DS_Store
- cooccur
- glove
- shuffle
- vocab_count
- cooccur.exe
- glove.exe
- pthreadVC2.dll
- shuffle.exe
- vocab_count.exe
- cooccur.exe
- glove.exe
- pthreadVC2.dll
- shuffle.exe
- vocab_count.exe
- .DS_Store
- .DS_Store
- analogy.txt
- similarity.txt
- .DS_Store
- __init__.py
- bert.py
- elmo.py
- fasttext.py
- glove.py
- sopmi.py
- utils.py
- w2v.py
- __init__.cpython-312.pyc
- index.cpython-312.pyc
- readability.cpython-312.pyc
- sentiment.cpython-312.pyc
- similarity.cpython-312.pyc
- utils.cpython-312.pyc
- .DS_Store
- __init__.py
- index.py
- readability.py
- sentiment.py
- similarity.py
- utils.py
- __init__.py
- dtm.py
- lda.py
- utils.py
- .DS_Store
- __init__.py
- causal.py
- hello.py
- llm.py
- mind.py
- plot.py
- .DS_Store
- cntext-1.9.4-py3-none-any.whl
- cntext-2.1.0-py3-none-any.whl
- cntext-2.1.1-py3-none-any.whl
- cntext-2.1.5-py3-none-any.whl
- cntext-2.1.5.tar.gz
- cntext-2.1.6-py3-none-any.whl
- cntext-2.1.6.tar.gz
- cntext-2.1.7-py3-none-any.whl
- cntext-2.1.7.tar.gz
- cntext-2.1.8-py3-none-any.whl
- cntext-2.1.8.tar.gz
- cntext-2.1.9-py3-none-any.whl
- cntext-2.1.9.tar.gz
- cntext-2.2.0-py3-none-any.whl
- cntext-2.2.0.tar.gz
- cntext-2.2.1-py3-none-any.whl
- cntext-2.2.1.tar.gz
- clipboard.js
- copybutton.js
- custom.css
- .DS_Store
- 01-san_ti_df.png
- 01-similar.png
- 02-analogy-woman.png
- 02-ddf.png
- 03-analogy.png
- 03-word2vec.png
- 04-expand.png
- 05-glove.png
- 06-sopmi.png
- 07-en-matrix.png
- 08-zh-matrix.png
- 09-term_freq.png
- 10-sentiment.png
- 11-concreteness_df.png
- 12-news-df.png
- 13-epu-df.png
- 13-epu-plot.png
- 14-mdadf.png
- 15-fepu.png
- 16-fepu-plot.png
- 17-santi-df.png
- 18-sbs-plot.png
- 19-1st-sbs.png
- 20-word-in-context.png
- 21-music-success-genderbias.png
- 22-semantic_projection.png
- 23-lexical_dispersion_plot1-relative.png
- 23-low-and-high-examples-of-discursive-diversity.jpeg
- 24-lexical_dispersion_plot1-absolute.png
- 25-santi_sentiment.png
- 26-santi_base.png
- 27-chinese-matplotlib.png
- 28-llm-analysis.png
- word-hhi-algo.png
- .DS_Store
- cite.md
- conf.py
- embeddings.md
- index.rst
- install.md
- intro.md
- io.md
- llm.md
- mind.md
- model.md
- paper_reproducibility.md
- plot.md
- quickstart.md
- requirements.txt
- stats.md
- wepa.md
- .DS_Store
- analogy.txt
- similarity.txt
- .DS_Store
- 01-hello.jpg
- 01-san_ti_df.png
- 01-similar.png
- 02-analogy-woman.png
- 02-ddf.png
- 03-analogy.png
- 03-word2vec.png
- 04-expand.png
- 05-glove.png
- 06-sopmi.png
- 07-en-matrix.png
- 08-zh-matrix.png
- 09-term_freq.png
- 10-sentiment.png
- 11-concreteness_df.png
- 12-news-df.png
- 13-epu-df.png
- 13-epu-plot.png
- 14-mdadf.png
- 15-fepu.png
- 16-fepu-plot.png
- 17-santi-df.png
- 18-sbs-plot.png
- 19-1st-sbs.png
- 20-word-in-context.png
- 21-music-success-genderbias.png
- 22-semantic_projection.png
- 23-lexical_dispersion_plot1-relative.png
- 23-low-and-high-examples-of-discursive-diversity.jpeg
- 24-lexical_dispersion_plot1-absolute.png
- 25-santi_sentiment.png
- 26-santi_base.png
- 27-chinese-matplotlib.png
- 28-llm-analysis.png
- word-hhi-algo.png
- cntext-stats.png
- cntext2.png
- cntext_logo.png
- co_occurrence1.png
- co_occurrence2.png
- dadeng.png
- logo.png
- management_data_mining_with_python_course2.png
- Nature_Semantic_projection_recovering_human_knowledge_of.png
- pythonText.png
- wordcloud.png
- wordshiftor.png
- ε€§ιεδ»ηPython.png
- θ―δΊεΎζ΅θ―.html
- θ―Ύη¨.png
- .DS_Store
- english_readme.md
- README.md
- version1.2.md
- test_wepa.cpython-312-pytest-8.4.1.pyc
- test_wepa.py
- hierarchy_concept_projection.png
- 01-WEPA-Intro.md
- 2. Build-Corpus.md
- 3. Train-Embeddings.md
- 4. Semantic-Axis-And-Scoring.md
- .DS_Store
- .readthedocs.yaml
- CITATION.cff
- directory-tree.md
- hierarchy_concept_projection.pdf
- hierarchy_concept_projection.png
- latest.db
- LICENSE
- make.bat
- Makefile
- poetry.lock
- pyproject.toml
- README.md
- README_backup.md
- setup.py
# Installation Guide
git clone https://github.com/hiDaDeng/cntext
Downloads the entire project code from GitHub to your computer.
cd cntext
Moves into the project folder you just downloaded.
2. Official Install Script
Easy Recommended- Python 3 Python is required to use pip.
pip install cntext --upgrade
Installs the package published on PyPI directly β no need to clone the source.
Pulled directly from this repo's README.
3. Python
Easypip install cntext --upgrade
Installs the package published on PyPI directly β no need to clone the source.
pip install -e .
Installs the Python libraries listed in requirements.txt (or similar).
python -m pytest tests/test_wepa.py
Runs the Python script (or module).
python3 -m pytest tests/test_wepa.py
Runs the Python script (or module).
Pulled directly from this repo's README.
4. Make
Medium- Git Needed to download the project code from GitHub.
- Make Usually pre-installed on Linux/macOS. On Windows, install separately (e.g. via MSYS2 or WSL).
make
Compiles the code based on the generated build configuration to produce an executable.
