def _parse_args(args: List[str]) -> Namespace:
    """
    Parse the arguments from the command line.

    Args:
        args (List[str]):   The arguments from the command line call.

    Returns:
        parser (Namespace): Populated namespace.
    """
    parser: ArgumentParser = ArgumentParser(description="Evaluate caption splitting.")

    add_json_arg(parser=parser,
                 folder_default_relative_path='caption_splitting/output/')

    return parser.parse_args(args)
Пример #2
0
def parse_args(args: List[str]) -> Namespace:
    """
    Parse the arguments from the command line.

    Args:
        args (List[str]):   The arguments from the command line call.

    Returns:
        namespace (Namespace):  Populated namespace.
    """
    parser = ArgumentParser(
        description="Evaluate label recognition detections.")

    add_json_arg(parser=parser,
                 folder_default_relative_path='label_recognition/output/')

    return parser.parse_args(args)
def _parse_args(args: List[str]) -> Namespace:
    """
    Parse the arguments from the command line.

    Args:
        args (List[str]):   The arguments from the command line call.

    Returns:
        parser (Namespace): Populated namespace.
    """
    parser: ArgumentParser = ArgumentParser(
        description="Evaluate panel splitting.")

    add_json_arg(parser=parser,
                 json_default_relative_path=\
                    '../data/zou/eval.json')

    return parser.parse_args(args)
def _parse_args(args: List[str]) -> Namespace:
    """
    Parse the arguments from the command line.

    Args:
        args (List[str]):   The arguments from the command line call.

    Returns:
        parser (Namespace): Populated namespace.
    """
    parser: ArgumentParser = ArgumentParser(
        description="Evaluate caption splitting on the prostate data set.")

    add_json_arg(parser=parser,
                 json_default_relative_path=\
                    '../data/pubmed_caption_splitting/prostate_data_only_annotated_captions.json')

    return parser.parse_args(args)