偏见

Posted 坑坑尔不坑

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了偏见相关的知识,希望对你有一定的参考价值。

  你的偏见究竟是多么地严厉。一首听着不错的歌,只因看到了歌者的封面,心里就产生了一丝的不悦。

  王莽,人如其名。一介莽夫,如黑旋风李逵,如花和尚鲁智深。

  终于有一天,识得其人。竟有儒生治天下。在这多雨的江南,每每逢雨,总是会想起“大弦嘈嘈如急雨,小弦切切如私语。嘈嘈切切错杂弹,大珠小珠落玉盘。”。何止是这雨中的一幕,儒家思想早已在你的身体里生根、发芽。你是如此的喜欢。

  你的偏见何时才能消失殆尽?

  

词云(傲慢与偏见)

#4.8.py
import matplotlib.pyplot as plt
import jieba
from wordcloud import WordCloud
txt = open("傲慢与偏见.txt", "r", encoding=‘utf-8‘).read()
excludes = {"先生","没有","太太","一个","自己","小姐","我们","可是","她们","他们","知道","事情","时候"}

words = jieba.lcut(txt)
counts = {}
for word in words:
     if len(word) == 1:
         continue
     else:
            rword = word
            counts[rword] = counts.get(rword,0) + 1
for word in excludes:
     del(counts[word])
items = list(counts.items())
items.sort(key=lambda x:x[1], reverse=True)
for i in range(5):
     word, count = items[i]

wc = WordCloud(font_path = r‘.simhei.ttf‘,background_color = ‘white‘,width = 500,height = 350,max_font_size=50,min_font_size=10)
wc.generate(txt)
wc.to_file("wordcloud.png")
plt.figure(‘wordcloud.png‘)
plt.imshow(wc)
plt.axis(‘off‘)
plt.show()

 

技术图片

 

以上是关于偏见的主要内容,如果未能解决你的问题,请参考以下文章

傲慢与偏见的时代背景

20170608-chapter 6-《pride and prejudice 傲慢与偏见》精读

你是否带着偏见看事物?

“若干分布式事务框架”与“偏见”

偏见

AI系统中的偏差与偏见