文件方式实现完整的英文词频统计实例 女爷i 2021-09-30 07:12 315阅读 0赞 news='''Geng Jiasheng, 54, a national master technician in the manufacturing industry, is busy working on improvements for a new removable environmental protection toilet, a project he has been devoted to since last year. "The removable low-waste environmental protection toilets have gone wrong after being installed on street. We are dealing with the problem," said Geng, a national model worker from the Yunnan Metallurgical Group. The research and development of the toilet is a brand new mission for Geng. "Previously, I was responsible for machinery manufacture," he said. "The transition to producing the toilet is pretty unfamiliar to me." Yunnan Metallurgical, headquartered in the southwest of the province, has eyed the toilet as the key plank of a revival after hitting hard times in recent years. The company set up a group led by Geng in January of 2016. "With a great sense of Party commitment, a mastery of technique and an eye for innovation, Geng is the only leader for this project. We trust him," said Xie Kailong, party chief of the company. Geng isn't bothered by the responsibility. The heavy burden which falls on his shoulder pushes him harder to be successful. Geng started the new job by researching using a borrowed schematic of the toilet for two weeks. Later, he and his group started experimenting, making use of Geng's ideas from the research. The concept behind the toilet is utilizing bacteria to decompose feces efficiently. Geng's group has to find out which bacteria are useful, how large an amount will be used to speed the process and what kind of environment best suits the bacteria's performance. "We have to collect fresh feces from toilets. I vomited heavily the first time. But Geng always put his bare hands into wastewater to check the samples," said Ma Zihui, who, being born in the 1990s, is the youngest member of the R&D group. The company has chosen a new plant at the Yangzonghai area as the base to develop the toilet, but the new plant is about 50 kilometers away from downtown Kunming. "Most employees are not willing to move so far. Geng took the lead in moving to this newly established branch. He is a model Party member," said Shi Yixiang, a member of Geng's group. After more than one year's research, the low-waste environmental protection toilets developed by Geng entered mass production in April. "It is the fourth generation that we have put into massive use on street," Geng said. "With high decomposing efficiency, the toilet can be used a maximum of 500 times a day." Since being recruited by the company in 1984, Geng has been working for the company at all levels, rising from a common laborer sharpening lathe tools to an expert at numerous skills, such as lathing, boring, planing and polishing. But Geng is not only a craftsman. He's also an innovator. In 1993, the company was tasked with producing a type of tower crane. Geng and his workmates innovated to improve the process, leading to a more than three-fourths' reduction in costs. Since 2010, the team led by Geng has made more than 500 innovations and saved more than 1 million yuan ($150,000) for the company. Geng said he has close to 200 technical innovations under his name. Geng's excellent performance has won him many honors, and this year he is a delegate taking part in the upcoming 19th Communist Party of China National Congress. ''' news=news.lower() for i in ',."': news=news.replace(i,' ') words=news.split(' ') print(words) dic=\{\} keys=set(words) print(keys) for i in keys: dic\[i\]=words.count(i) print(dic) wc=list(dic.items()) wc.sort(key=lambda x:x\[1\],reverse=True) print(wc) for i in range(15): print(wc\[i\]) ![1232361-20170926102158589-551758314.png][] 转载于:https://www.cnblogs.com/y550293904/p/7595355.html [1232361-20170926102158589-551758314.png]: /images/20210725/aa9ba180fe004451a2f14297069bc4f0.png
相关 用Spark实现的词频统计 WordCount 前言 准备两个文本文件 方法一 方法二 优化 -------------------- 前言 `为了能直观地感受 S £神魔★判官ぃ/ 2024年03月25日 11:04/ 0 赞/ 87 阅读
相关 利用Python统计中文或英文文本词频(适合初学者) 一篇文章出现了那些词语?那些词出现的次数最多? 中文文本?英文文本? 英文文本测试资源:哈默雷特:[https://python123.io/resources/pye 比眉伴天荒/ 2023年02月27日 05:45/ 0 赞/ 7 阅读
相关 python 词频的统计多种方式 现有列表如下: \[6, 7, 5, 9, 4, 1, 8, 6, 2, 9\] 希望统计各个元素出现的次数,可以看作一个词频统计的问题。 我们希望最终得到一个这样的结果 谁借莪1个温暖的怀抱¢/ 2022年05月30日 05:53/ 0 赞/ 330 阅读
相关 Python 《Hamlet》哈姆雷特英文词频统计 英文词频统计 关键问题: 1、词语 -- 键 2、相同词语的累加 -- 值 讨论:定义什么数据类型 -- 字典类型 问题描述: I:文件的输入 P: 妖狐艹你老母/ 2022年04月24日 06:00/ 0 赞/ 781 阅读
相关 统计特定文件中的词频 分享一下我老师大神的人工智能教程!零基础,通俗易懂![http://blog.csdn.net/jiangjunshow][http_blog.csdn.net_jiangju 矫情吗;*/ 2022年04月16日 05:48/ 0 赞/ 192 阅读
相关 中文词频统计 中文词频统计 -------------------- 这个作业的要求来自于:[https://edu.cnblogs.com/campus/gzcc/GZCC-16 小鱼儿/ 2022年01月12日 13:23/ 0 赞/ 384 阅读
相关 中文词频统计 本次作业的要求来自于:[https://edu.cnblogs.com/campus/gzcc/GZCC-16SE2/homework/2773][https_edu.cnbl 浅浅的花香味﹌/ 2021年12月20日 20:39/ 0 赞/ 304 阅读
相关 中文词频统计 作业要求来自: [https://edu.cnblogs.com/campus/gzcc/GZCC-16SE2/homework/2773][https_edu.cnblogs 柔光的暖阳◎/ 2021年12月17日 08:37/ 0 赞/ 263 阅读
相关 文件方式实现完整的英文词频统计实例 news='''Geng Jiasheng, 54, a national master technician in the manufacturing industry, i 女爷i/ 2021年09月30日 07:12/ 0 赞/ 316 阅读
还没有评论,来说两句吧...