Skip to content

Commit

Permalink
Fixing types. (RasaHQ#10083)
Browse files Browse the repository at this point in the history
Fixed a problem with paths being processed as strings.

Co-authored-by: Matthew Summers <m.summers@rasa.com>
  • Loading branch information
aeshky and usc-m authored Nov 4, 2021
1 parent 1ab2908 commit c74a69a
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions rasa/cli/arguments/evaluate.py
Original file line number Diff line number Diff line change
@@ -1,19 +1,20 @@
import argparse
from pathlib import Path
from rasa.cli.arguments.default_arguments import add_endpoint_param, add_domain_param


def set_markers_arguments(parser: argparse.ArgumentParser) -> None:
"""Specifies arguments for `rasa evaluate markers`."""
parser.add_argument(
"output_filename",
type=str,
type=Path,
help="The filename to write the extracted markers to (CSV format).",
)

parser.add_argument(
"--config",
default="markers.yml",
type=str,
type=Path,
help="The config file(s) containing marker definitions. This can be a single "
"YAML file, or a directory that contains several files with marker "
"definitions in it. The content of these files will be read and merged "
Expand All @@ -33,7 +34,7 @@ def set_markers_arguments(parser: argparse.ArgumentParser) -> None:
"--stats-file-prefix",
default="stats",
nargs="?",
type=str,
type=Path,
help="The common file prefix of the files where we write out the compute "
"statistics. More precisely, the file prefix must consist of a common "
"path plus a common file prefix, to which suffixes `-overall.csv` and "
Expand Down

0 comments on commit c74a69a

Please sign in to comment.