Posts

Showing posts from April, 2024

政治言论倾向分析器

Image
背景介绍 Mhyyyy老师的视频 《从零教你懂政治6》 介绍了多维政治坐标。通过使用计划-市场;民主-威权;进步-保守;世界-民族这4个指标来判断一个人的政治思想确实是相当全面的思想。 但是由“人” 来判断政治坐标总归是主观的。因为“人”做评价时,总是不可避免地带有其自己的倾向,如果我是极左,那我看其他人都偏右。此外,人的思想总是会受到环境的干扰,比如一个人,听多了极端保守主义的言论,就可能会把一个中立的言论当成进步的。 目前为止,最客观的评价政治指标方法当然是做测试题,但是如果只是想分析一句话的政治倾向,或者想给一个已经去世的人做客观的政治指标分析,测试题就没有用武之地了。 除了做测试题之外,其实也可以使用ChatGPT(特指GPT-4)做客观的政治倾向分析。 因为ChatGPT学习过大量的文本数据,其中自然包括政治方面的知识。事实上,ChatGPT对政治的理解相当深刻,并且十分博学。 我稍稍测试了一些常见的政治术语,要求ChatGPT进行解释,它的回答也基本令人满意。想必ChatGPT有能力评价一个人的政治倾向。 提示词 这里抛砖引玉,给出一份效果还可以的提示词,用于分析某一言论的政治倾向。如果有谁有更好的提示词,欢迎分享。 请分析以下言论所体现的言论本人的政治倾向。请从4个维度来分析其政治倾向,请在每一个评价处简要说明原因。 经济: 计划(平等, 左) - 市场(自由, 右) ,如果此言论支持市场主义,依据其支持程度不同,将其评价为市场6-市场10,市场6为中立,稍偏向市场经济,而市场10为极端市场经济,数值越大越极端。如果此言论支持计划主义,依据其支持程度不同,评价其为计划6-计划10。如中立,则评价为中立5,如未体现明显的倾向请回复未知0。 政治: 民主(自由) - 威权(权威),评价规则同上。 文化: 进步 - 保守,评价规则同上。 身份: 世界(全球) - 民族(国家),评价规则同上。 请以以下格式回复: **经济 计划/市场num** - 原因 **政治 民主/威权num** - 原因 **文化 进步/保守num** - 原因 **身份 世界/民族num** - 原因 请注意:言论本人并不一定支持其提到的政治倾向。如某言论虽然提到了计划经济,但认为其属于极左,这意味这他的经济...

写博客1周年的一些随想 - Some Random Thoughts on the First Anniversary of Blogging

我的 第一篇博客 是2023年4月3日发布的。到今天(2024年4月12日)已经满一周年了。 My first blog post  was published on April 3, 2023. Today, April 12, 2024, marks its first anniversary. 这一年里我一共发了62篇博客,基本做到了每周一篇,还算是高产出。 这些博客中,有1/3是对于政治和哲学的探讨(包括骂各种人),有1/3是分享一些(现学的)编程和电脑技术,还有一小部分就是各种各样的推荐了。 Over this year, I've managed to write 62 blog posts, achieving roughly one post per week, which is quite productive. A third of these posts delve into politics and philosophy, another third share insights into programming and computer technology that I learned on the fly, and the rest recommend various things. 除此之外,我对博客的界面也一直在“折腾”,包括各种排版布局和小工具。这其中我最费心的就是Tennisbot的live2d插件了,从布局,内容,到加载速度。不夸张的说,我感觉我现在已经有一定的前端技术了。 In addition to content, I've constantly tinkered with the blog's interface, including various layouts and widgets. The most time-consuming project has been the Tennisbot's live2d plugin, from its layout and content to its loading speed. It's no exaggeration to say ...

魔改Gromacs,并运行 - Modify the Gromacs, and run it

Image
Gromacs是一个开源的软件,用c++开发。如果对Gromacs的某个功能不满意,大可以直接去修改其源代码,然后编译,安装。 Gromacs is an open-source software developed in C++. If you are dissatisfied with a particular feature of Gromacs, you can directly modify its source code, then compile and install it. 首先,从github上下载其源代码:在想要储存代码的地方打开terminal(或者对于windows用户就是powershell),输入: First, download the source code from GitHub: Open the terminal (or PowerShell for Windows users) in the desired location to store the code, and type: ``` git clone https://github.com/gromacs/gromacs.git ``` 源代码储存在gromacs/src/gromacs/里,比如分析氢键的gmx hbond就位于gromacs/src/gromacs/gmxana/gmx_hbond.cpp 想怎么改都可以,改好后保存。 The source code is stored in gromacs/src/gromacs/. For example, the code for analyzing hydrogen bonds, gmx hbond, is located at gromacs/src/gromacs/gmxana/gmx_hbond.cpp. Modify as you like and then save. 然后,使用cmake编译gromacs:进入gromacs的主文件夹,创建一个名为build的文件夹,进入,在此打开terminal,输入: Next, compile Gromacs using cmake: Enter the main Gromacs directory, create a...

热门博文 - Popular posts