This preview shows pages 1–2. Sign up to view the full content.
This preview has intentionally blurred sections. Sign up to view the full version.View Full Document
Unformatted text preview: Sample thesaurus.txt The file that youll read in is called thesaurus.txt . It is formatted with a single word on each line, as in the example to the top-right. Each pair of words represents a pair of synonyms; for example: Skinny is a synonym of Thin Dent is a synonym of Chip 2 Student is a synonym of Pupil If time permits: your solution to number 4 is likely case-sensitive that is, the program treats the words Funny and funny as different words. This has a profound impact, as looking up one string results in a successful lookup, while the other one fails which, at the very least, would be very counter-intuitive (and annoying) to the user. How would you insulate your program from this issue, and make it case-insensitive ?...
View Full Document
This note was uploaded on 10/14/2010 for the course CS 106A taught by Professor Sahami,m during the Fall '08 term at Stanford.
- Fall '08