摘要: 一、词频统计 A. 分步骤实现 准备文件 下载小说或长篇新闻稿 上传到hdfs上 读文件创建RDD 分词 >>> words = lines.flatMap(lambda a:a.split()) >>> words.collect() (1)排除大小写lower(),map() >>> words 阅读全文
posted @ 2022-04-07 21:33 川久保玲球 阅读(42) 评论(0) 推荐(0)