Пример #1
0
def shell_main():
    from rasa.__main__ import main
    from sagas.tool.loggers import init_logger

    init_logger()

    inject()
    main()
Пример #2
0
from sagas.util.pandas_helper import to_df, dict_df
from sagas.util.name_util import to_global_id, from_global_id
# from sagas.nlu.corenlp_helper import LangDialect as dia
from sagas.util.collection_util import *
# import sagas.nlu.locales as locales
from sagas.tool.loggers import init_logger

init_logger()

def print_df(df):
    from tabulate import tabulate
    # import pandas as pd
    # pd.set_option('display.unicode.ambiguous_as_wide', True)
    print(tabulate(df, headers='keys', tablefmt='psql'))

def print_rs(rs, cols):
    print_df(to_df(rs, cols))

def runtime_dir():
    import os
    return os.path.dirname(__file__)

from sagas.tool.comps_delegator import profs