}
//Now determine if we're tagging from stdin or from a file,
//construct a reader accordingly
boolean stdin = config.useStdin();
OutputStyle outputStyle = OutputStyle.fromShortName(config.getOutputFormat());
if (!stdin) {
String filename = config.getFile();
if (formatPattern.matcher(filename).find()) {
TaggedFileRecord record = TaggedFileRecord.createRecord(config, filename);
runTagger(record.reader(), writer, outputStyle);