Word frequency: Difference between revisions
Content added Content deleted
Line 2,399: | Line 2,399: | ||
CFMutableArrayRef wordArr = fn MutableArrayWithCapacity( 0 ) |
CFMutableArrayRef wordArr = fn MutableArrayWithCapacity( 0 ) |
||
// Create word |
// Create word counter |
||
NSInteger totalWords = 0 |
NSInteger totalWords = 0 |
||
// Enumerate each word, get its frequency, create its own key/value pair dictionary, add each dictionary into master array |
// Enumerate each unique word, get its frequency, create its own key/value pair dictionary, add each dictionary into master array |
||
for wrd in array |
for wrd in array |
||
totalWords++ |
totalWords++ |