<commit_before>#!/usr/bin/env python
# -*- coding: utf-8 -*-
# Authors: <NAME>, <NAME>

"""
This module implements the command line interface of pocores.
"""

import sys
from argparse import ArgumentParser


def parse_options():
    """
    @author: <NAME>
    @author: <NAME>
    """
    parser = ArgumentParser(prog='pocores')

    input_options = parser.add_argument_group("Input Options",
        "These options allow you to specify input options")
    input_options.add_argument('-i', '--input', dest='input',
        help='Specify the input file', metavar='FILENAME')
    input_options.add_argument('-c', '--input_format', dest='informat',
        default='conll2010',
        help='Specify the input file format: conll2009 or conll2010')
    input_options.add_argument('-s', '--stream', dest='from_stream', help='Read from stdin')

    coref_options = parser.add_argument_group("Coreference Options",
        "Change coreference resolution parameters without touching the code.")
    coref_options.add_argument('-w', '--weights', dest='weights',
        help=('Specify the coreference filter weights (7 comma separated'
              ' integers, e.g. "8,2,8,3,2,7,0"'))
    coref_options.add_argument('-d', '--max_sent_dist', dest='max_sent_dist',
        help=('Specify how many preceding sentences will be considered for'
            ' finding antecedents'))<commit_msg>cli.py: removed stdin read option<commit_after>#!/usr/bin/env python
# -*- coding: utf-8 -*-
# Authors: <NAME>, <NAME>

"""
This module implements the command line interface of pocores.
"""

import sys
from argparse import ArgumentParser


def parse_options():
    """
    @author: <NAME>
    @author: <NAME>
    """
    parser = ArgumentParser(prog='pocores')

    input_options = parser.add_argument_group("Input Options",
        "These options allow you to specify input options")
    input_options.add_argument('-i', '--input', dest='input',
        help='Specify the input file', metavar='FILENAME')
    input_options.add_argument('-c', '--input_format', dest='informat',
        default='conll2010',
        help='Specify the input file format: conll2009 or conll2010')

    coref_options = parser.add_argument_group("Coreference Options",
        "Change coreference resolution parameters without touching the code.")
    coref_options.add_argument('-w', '--weights', dest='weights',
        help=('Specify the coreference filter weights (7 comma separated'
              ' integers, e.g. "8,2,8,3,2,7,0"'))
    coref_options.add_argument('-d', '--max_sent_dist', dest='max_sent_dist',
        help=('Specify how many preceding sentences will be considered for'
            ' finding antecedents'))
{'fraction_non_alphanumeric': 0.1404096834264432, 'fraction_numerical': 0.01564245810055866, 'mean_word_length': 3.7288732394366195, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 11, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2803930', 'n_tokens_mistral': 821, 'n_tokens_neox': 786, 'n_words': 209}