def _review_simulate():
    """CLI to the oracle mode."""

    parser = _parse_arguments("simulate", prog="asreview simulate")
    args = parser.parse_args(sys.argv[2:])

    args_dict = vars(args)
    path = args_dict.pop("dataset")

    review_simulate(path, **args_dict)
Exemple #2
0
    def execute(self, argv):
        parser = _simulate_parser()
        args = parser.parse_args(argv)

        args_dict = vars(args)
        path = args_dict.pop("dataset")

        verbose = args_dict.get("verbose", 0)
        if verbose == 0:
            logging.getLogger().setLevel(logging.WARNING)
        elif verbose == 1:
            logging.getLogger().setLevel(logging.INFO)
        elif verbose >= 2:
            logging.getLogger().setLevel(logging.DEBUG)

        review_simulate(path, **args_dict)
def _review_general(mode="oracle"):
    parser = _parse_arguments(mode, prog="asreview " + mode)
    args = parser.parse_args(sys.argv[2:])

    args_dict = vars(args)
    path = args_dict.pop("dataset")

    verbose = args_dict.get("verbose", 0)
    if verbose == 0:
        logging.getLogger().setLevel(logging.WARNING)
    elif verbose == 1:
        logging.getLogger().setLevel(logging.INFO)
    elif verbose >= 2:
        logging.getLogger().setLevel(logging.DEBUG)

    print(welcome_message(mode))
    if mode == "oracle":
        review_oracle(path, **args_dict)
    elif mode == "simulate":
        review_simulate(path, **args_dict)
Exemple #4
0
 def execute(self, **kwargs):
     review_simulate(**kwargs)