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