Help with Lexical units, use hashmap
Hi, I have a file which holds lexical units (words). Lexical units have an ID, the word, and it's type. I can read the file using a file-reader and bufferedreader which gives this output.
Basically, i want to put this into a hashmap so I can search the records. My problem is that sometimes a lexical unit comprises of more than one word example obstetrical delivery rather than just being ID word type.
record 138: 100038353 uncovering n
record 139: 100038749 disposal n
record 140: 100038749 disposition n
record 141: 100039042 hit n
record 142: 100039290 implementation n
record 143: 100039290 effectuation n
record 144: 100039595 egress n
record 145: 100039595 egression n
record 146: 100039595 emergence n
record 147: 100039813 equalization n
record 148: 100039813 equalisation n
record 149: 100039813 leveling n
record 130: 100037703 obstetrical delivery n
Can anyone suggest how I put this data into a hashmap?