int outputStyle = PlainTextDocumentReaderAndWriter.asIntOutputFormat(config.getOutputFormat());
if (config.getSGML()) {
// this uses NER codebase technology to read/write SGML-ish files
PlainTextDocumentReaderAndWriter readerAndWriter = new PlainTextDocumentReaderAndWriter();
ObjectBank<List<CoreLabel>> ob = new ObjectBank<List<CoreLabel>>(new ReaderIteratorFactory(br), readerAndWriter);
PrintWriter pw = new PrintWriter(writer);
for (List<CoreLabel> sentence : ob) {
Sentence<CoreLabel> s = new Sentence<CoreLabel>(sentence);
numWords += s.length();
Sentence<TaggedWord> taggedSentence = MaxentTagger.tagSentence(s);