// Tokenize with the mapper
StringBuilder sb = new StringBuilder();
String[] toks = line.split("\\s+");
for (String tok : toks) {
String mappedTok = lexMapper.map(null, tok);
sb.append(mappedTok).append(" ");
}
List<String> mappedToks = Arrays.asList(sb.toString().trim().split("\\s+"));
// Evaluate the output