https://github.com/simpsus/WordCram/blob/sketches/src/contrib/CSVImporter.java
can be given a csv file and two indices. The csv file will then be parsed and a Word[] returned. The csv parsing is handled by the lightweight opencsv
http://opencsv.sourceforge.net/
https://sourceforge.net/projects/opencsv/
for which there seems to be a fork at
https://code.google.com/p/opencsv/
which I did not use