def METHOD_NAME():
    cnt = 1
    matchcnt = 0
    _logger_.info("PASS 2: Started processing input file '{}' ...".format(_args_.input_file))
    freqfile = open(_args_.output_file, "wb")
    with open(_args_.input_file) as f:
        for line in f:
            # Remove end of line
            line = line.strip()
            tokens = line.split('\t')
            if len(tokens) == 4:
                matchcnt += 1
                flexform = tokens[0]
                frequency = tokens[3]
                # Write to frequency file
                freqfile.write('<w f="{}" flags="">{}</w>\n'.format(_freqmap_[ int(frequency) ], flexform).encode('utf-8'))
            else:
                _logger_.warn("Unmatched line: {}".format(line))
            if cnt == _args_.first_n_lines > 0:
                break
            cnt += 1
        f.close()
    freqfile.close()
    _logger_.info("PASS 2: Finished processing input file '{}': total {} lines, {} matching lines.".format(
        _args_.input_file, cnt, matchcnt))