{
int docId = (Integer)trainIterator.next();
doc = (Document)ir.document(docId);
//********************** Title Similarity Score ***************
ts = analyzer.tokenStream("title", new StringReader(doc.get("title")));
termAtt = ts.addAttribute(TermAttribute.class);
// Construct a HashMap of Train record title
titleMap = new HashMap<String , Integer>();
titleNI = 0;