选择一个文本进行词频统计(英文)或人物出场次数统计(中文)
时间: 2023-05-25 10:02:09 浏览: 47
我选择进行词频统计,以下是文本:
"The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. "
经过分词处理,可以得到每个单词出现的次数如下:
the: 8
quick: 8
brown: 8
fox: 8
jumps: 8
over: 8
lazy: 8
dog: 8
可以看到,每个单词都出现了8次,因为文本中只有这8个单词,没有其他单词。