cntext icon indicating copy to clipboard operation
cntext copied to clipboard

cntext is a text analysis package that provides semantic distance and semantic projection based on word embedding models. Besides,cntext also provides the traditional methods, such as word count , rea...

Results 23 cntext issues
Sort by recently updated
recently updated
newest added

作者你好,你提供的引文格式,即便基于doi也查不到原文,方便的话劳烦提供一下具体的论文网址: 另sentiment_by_valence()有具体解释底层算法的文章吗?方便的话也劳烦提供一下 谢谢! 祝, 好! ``` @misc{YourReferenceHere, author = {Deng, Xudong and Nan, Peng}, doi = {10.5281/zenodo.7063523}, month = {9}, title = {cntext: a Python tool for text mining}, url...

--------------------------------------------------------------------------- ValueError Traceback (most recent call last) Cell In[5], line 1 ----> 1 import cntext as ct 2 help(ct) File ~/anaconda3/envs/dadeng/lib/python3.8/site-packages/cntext/__init__.py:3 1 __version__ = "1.8.4" ----> 3 from cntext.dictionary import...

在 colab 上執行 !pip install cntext 時會出現錯誤: ![image](https://github.com/hiDaDeng/cntext/assets/7992513/5e8e9fc8-f992-4158-85dc-9e11cff3cbcd)

print(ct.__version__) diction = ct.load_pkl_dict("DUTIR.pkl") for key in diction['DUTIR'].keys(): print(key, len(diction['DUTIR'][key])) print(diction['DUTIR']['怒']) 1.8.4 乐 1967 好 11107 怒 0 哀 2314 惧 1179 恶 10282 惊 228 []

python 3.7 pandas 1.1.5 import cntext as ct concreteness_df = ct.load_pkl_dict('concreteness.pkl') 按readme运行后 Can't get attribute 'new_block' on 升级pandas至最新版本1.3.5后解决,是不是安装包应该约束一下pandas版本?

你好,archlinux 下面无法进行安装,提示gensim构建失败 ERROR: Failed building wheel for gensim 所有软件版本均为最新(arch linux 默认的状态下的软件更新机制) python:3.10 pip:pip 22.1.2 from /home/XXX/.local/lib/python3.10/site-packages/pip (python 3.10) 所有软件均安装在用户目录下(~/.local/lib)中 如果这种安装方式不对,希望提供一个比较合适的系统版本(环境),比如ubuntu debian等 ![image](https://user-images.githubusercontent.com/15911317/175204945-f9d37ac5-0bc7-4c8b-9376-554f38a14a5a.png)

运行代码 ```python import cntext as ct text = '我今天得奖了,很高兴,我要将快乐分享大家。' ct.sentiment(text=text, diction=ct.load_pkl_dict('DUTIR.pkl')['DUTIR'], lang='chinese') ``` 报错 ``` Traceback (most recent call last): File "d:\PythonProject\test\test_cntext.py", line 5, in ct.sentiment(text=text, File "D:\Miniconda3\envs\py38\lib\site-packages\cntext\stats.py", line 159,...

ct.readability()函数中第二个参数是zh_adjconj=None 这里表示自定义副词和连词词典,参数介绍中也是Chinese **conjunctions and adverbs**, receive list data type. By default, the built-in dictionary of cntext is used。 为何在参数的命名中却是形容词adj的缩写?