语料 text = """My fellow citizens: I stand here today humbled by the task before us, grateful for the trust you've bestowed, mindful of the sacrifices borne by our ancestors. I thank President Bush for his service to our nation -- (applause)…
# -*- coding: utf-8 -*- #!/usr/bin/env python import re f = open("C:\\Users\\陶敏\\Documents\\Pyscript\\test.txt") str = f.read() li = re.split(r'[, ;.\n\t]',str) for i in li: if(len(i))==0: li.remove(i) res_world = [] res_count = [] for i in li:…