WordSearch : parses a file and finds word associations

Download Files

Changes

  1. Initial Version

Installation

None.

Notes

wordsearch reads a file and dumps out the word associations found in the file.

That is, if a word "first" is followed by "second" then there is an association between "first" and "second". Deep.

Someday, I was going to add a search capability. When given a word, it and all of the strongly associated words with it would be returned. What "strongly" means, I have no idea.

The crucial thing to notice about this code, is how obstuse it is. It's almost impossible to tell what the thing is doing. The whole process could have been done with a simple STL map and an additional class or two.

Instead I used a Mediator class, a Model Class, a whatever. It's a nightmare.




Contact me about content on this page using john_web-at-arrizza-dot-com
For Web Master or site problems contact: webadmin-at-arrizza-dot-com
Copyright John Arrizza (c) 2001-2010