parser.parse(line);
int numParses = Math.min(nbestListSize, parser.getResult().size());
for (int i=0; i < numParses; i++) {
Sign thisParse = parser.getResult().get(i);
// convert lf
Category cat = thisParse.getCategory();
LF convertedLF = null;
String predInfo = null;
if (cat.getLF() != null) {
// convert LF
LF flatLF = cat.getLF();
cat = cat.copy();
Nominal index = cat.getIndexNominal();
convertedLF = HyloHelper.compactAndConvertNominals(flatLF, index, thisParse);
// get pred info
predInfoMap.clear();
Testbed.extractPredInfo(flatLF, predInfoMap);
predInfo = Testbed.getPredInfo(predInfoMap);