This repository has been archived by the owner on Aug 22, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into inter_entity
- Loading branch information
Showing
57 changed files
with
3,006 additions
and
284 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,4 @@ | ||
include LICENSE.txt README.md requirements.txt dev-requirements.txt rasa_core/schemas/* rasa_core/training/visualization.html rasa_core/default_config.yml | ||
include LICENSE.txt README.md requirements.txt dev-requirements.txt | ||
include rasa_core/schemas/* rasa_core/training/visualization.html | ||
include rasa_core/default_config.yml | ||
recursive-include rasa/cli/initial_project * |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 7 additions & 0 deletions
7
data/test_endpoints/event_brokers/kafka_plaintext_endpoint.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
event_broker: | ||
url: localhost | ||
sasl_username: username | ||
sasl_password: password | ||
topic: topic | ||
security_protocol: SASL_PLAINTEXT | ||
type: kafka |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
event_broker: | ||
url: localhost | ||
topic: topic | ||
security_protocol: SSL | ||
ssl_cafile: CARoot.pem | ||
ssl_certfile: certificate.pem | ||
ssl_keyfile: key.pem | ||
ssl_check_hostname: True | ||
type: kafka |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import logging | ||
|
||
import rasa.version | ||
|
||
from rasa.run import run | ||
from rasa.train import train | ||
from rasa.test import test | ||
|
||
logging.getLogger(__name__).addHandler(logging.NullHandler()) | ||
|
||
__version__ = rasa.version.__version__ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
import argparse | ||
import logging | ||
|
||
from rasa_core.cli.arguments import add_logging_option_arguments | ||
from rasa_core.utils import configure_colored_logging | ||
|
||
from rasa import version | ||
from rasa.cli import (scaffold, run, train, interactive, | ||
shell, test, show, data, up) | ||
from rasa.cli.utils import parse_last_positional_argument_as_model_path | ||
|
||
logger = logging.getLogger(__name__) | ||
|
||
|
||
def create_argument_parser() -> argparse.ArgumentParser: | ||
"""Parse all the command line arguments for the training script.""" | ||
|
||
parser = argparse.ArgumentParser( | ||
prog="rasa", | ||
formatter_class=argparse.ArgumentDefaultsHelpFormatter, | ||
description="Rasa command line interface. Rasa allows you to build " | ||
"your own conversational assistants 🤖. The 'rasa' command " | ||
"allows you to easily run most common commands like " | ||
"creating a new bot, training or evaluating models.") | ||
|
||
parser.add_argument("--version", action='store_true', | ||
default=argparse.SUPPRESS, | ||
help="Print installed Rasa version") | ||
|
||
parent_parser = argparse.ArgumentParser(add_help=False) | ||
add_logging_option_arguments(parent_parser) | ||
parent_parsers = [parent_parser] | ||
|
||
subparsers = parser.add_subparsers(help='Rasa commands') | ||
|
||
scaffold.add_subparser(subparsers, parents=parent_parsers) | ||
run.add_subparser(subparsers, parents=parent_parsers) | ||
shell.add_subparser(subparsers, parents=parent_parsers) | ||
train.add_subparser(subparsers, parents=parent_parsers) | ||
interactive.add_subparser(subparsers, parents=parent_parsers) | ||
test.add_subparser(subparsers, parents=parent_parsers) | ||
show.add_subparser(subparsers, parents=parent_parsers) | ||
data.add_subparser(subparsers, parents=parent_parsers) | ||
up.add_subparser(subparsers, parents=parent_parsers) | ||
|
||
return parser | ||
|
||
|
||
def print_version() -> None: | ||
print("Rasa", version.__version__) | ||
|
||
|
||
def main() -> None: | ||
# Running as standalone python application | ||
parse_last_positional_argument_as_model_path() | ||
arg_parser = create_argument_parser() | ||
cmdline_arguments = arg_parser.parse_args() | ||
|
||
if hasattr(cmdline_arguments, "func"): | ||
configure_colored_logging(cmdline_arguments.loglevel) | ||
cmdline_arguments.func(cmdline_arguments) | ||
elif hasattr(cmdline_arguments, "version"): | ||
print_version() | ||
else: | ||
# user has not provided a subcommand, let's print the help | ||
logger.error("No command specified.") | ||
arg_parser.print_help() | ||
exit(1) | ||
|
||
|
||
if __name__ == '__main__': | ||
main() |
Empty file.
Oops, something went wrong.