word-frequency Questions
4
Solved
This gives me a frequency of words in a text:
fullWords = re.findall(r'\w+', allText)
d = defaultdict(int)
for word in fullWords :
d[word] += 1
finalFreq = sorted(d.iteritems(), key = oper...
Unvarnished asked 4/7, 2010 at 3:6
5
Solved
I'd like to get some community consensus on a good design to be able to store and query word frequency counts. I'm building an application in which I have to parse text inputs and store how many ti...
Speedway asked 17/5, 2010 at 20:49
4
Solved
On the Stackoverflow podcast this week, Jeff mentioned that in 2004 he wrote a script which queried Google with 110,000 English words and collected a database containing the number of hits for each...
Goldthread asked 4/12, 2008 at 9:20
7
Solved
I'm a non-computer science student doing a history thesis that involves determining the frequency of specific terms in a number of texts and then plotting these frequencies over time to determine c...
Fiveandten asked 24/11, 2008 at 22:0
© 2022 - 2024 — McMap. All rights reserved.