110 KiB
Sztuczna empatia 4
Empatia w systemach dialogowych
Joanna Siwek
Spis treści
- Wstęp
- Analiza języka mówionego i pisanego
- Metody implementacji emocji w systemach dialogowych
- Chatboty i wirtualni asystenci
- Emocjonalni wirtualni rozmówcy
- Zadania
Wstęp
Analiza języka mówionego i pisanego
Przetwarzanie języka naturalnego
- Rozpoznawanie mowy
- Tagowanie gramatyczne
- Rozpoznawanie znaczenia wyrazów
- Rozpoznawanie nazwanych obiektów
- Rozpoznawanie ko-referencji
- Analiza uczuć
- Tworzenie języka naturalnego
Metody reguł symbolicznych
Deep learning
Metody regułowe polegają na ręcznym wypisywaniu reguł, według krórych prowadzone ma być rozumowanie w systemie. Jest to metoda historycznie starsza, posiadająca silne wady. Przede wszystkim, system działa jedynie w takim zakresie, w jakim zdefiniowane zostały reguły. Oznacza to, iż twórca musi dokładnie rozważyć wszystkie możliwe stany i aktywności systemu jeszcze przed jego stworzeniem. System nie będzie również w stanie zareagowac na sytuację, która nie została wcześniej zdefiniowana.
W odróżnieniu do systemów regułowych, systemy wykorzystujące deep learning same wywnioskowują reguły z dużych zbiorów danych. Im więcej danych jest dostarczonych, tym dokładniejszy jest system. Co więcej, systemy te wykorzystują statystykę, aby ominąć problemy z nieprawidłowo wprowadzonym tekstem czy niezrozumiałą mową - sygnał jest porównywany ze statystycznie najczęściej występującymi wejściami. Podobnie, uczenie maszynowe skupia się na najczęściej występujących sytuacjach i znaczeniach.
Pomimo wielu zalet modeli opartych na deep learningu, modele regułowe nadal są wykorzystywane, np. wtedy kiedy dostęp do dużych zbiorów danych jest niemożliwy.
Podstawowe elementy silników NLP to [15]:zamiar - zadanie, które chce wykonać użytkownik
instancja - miejsce, czas, data
wypowiedź
kontekst - parametry sesji
sesja - oznaczona przez początek i koniec konwersacji
Można wymienić kilka powodów, dla których NLP przydaje się konkretnie w chatbotach [15]:Pozwala na dokładniejszą interpretację danych wprowadzanych przez użytkownika
Pozwala wyeliminować "literówki"
Pozwala na komunikację zrozumiałą dla szerszego grona użytkowników
Pozwala na szybszą naukę
Wymaga mniejszego zbioru danych uczących
Pozwala na abstrahowanie od konkretnej dziedziny zastosowań
Warto tu wspomnieć o podmiotowości systemów konwersacyjnych. Aby system komputerowy był zdefiniowany jako podmiot, musi on mieć zdolnośc do samodzielnego podejmowania decyzji. Zgodnie z tą definicją, podmioty konwersacyjne nie mogę być prostymi systemami typu jeżeli x to y, ponieważ system taki nie zakłada automatycznego podejmowania decyzji o tym, w jaki sposób odpowiedzieć na dany sygnał od użytkownika.
Metody implementacji emocji w systemach dialogowych
Mechanizmy kominikacji emocjonalnej - podmiot musi umieć odebrać oraz wysłać sygnały emocjonalne, np. przez słowa, mimikę, gesty
Mechanizmy regulacji emocjonalnej - podmiot musi potrafić zareagować w odpowiedni sposób na sygnał emocjonalny
Mechanizmy kognitywne - podmiot musi znać podstawowe zasady przyczynowo-skutkowe zachowań emocjonalnych oraz mieć możliwość pozyskania nowej wiedzy na ich temat
Każdy z tych poziomów zachowania posiada pewne swoje składowe, zależne od poziomu empatii - od bardziej podstawowych, instynktownych, do bardziej złożonych, związanych z inteligencją emocjonalną. Możemy zatem wyróżnić następujące zachowania:* Komunikacja emocjonalna * Rozpoznanie emocji np. system wizyjny * Reprezentacja emocji np. mapa emocji * Wyrażenie emocji np. zmiana tonu głosu * Regulacja emocjonalna * Samoregulacja wewnętrzna * Humor * Osobowość * Regulacja międzypodmiotowa * Podobieństwo * Powiązanie emocjonalne * Sympatia * Mechanizmy kognitywne * Ocena * Re-ewaluacja * Teoria umysłu - przyjmowanie perspektywyMożna wyróżnić dwa rodzaje emocjonalnych podmiotów konwersacyjnych, zaimplementowanych na systemach wbudowanych [2]:Sensitive Artificial Listener (SAL) - wrażliwy sztuczny słuchacz
Jest to multimodalny system dialogowy, zdolny do niewerbalnej interakcji opartej na mowie, poruszaniu głową i mimice użytkownika. Bierze pod uwagę emocje rozmówcy i reaguje przy pomocy mimikry, opartej na rozpoznanym wyrazie twarzy.Affective Listener - uczuciowy słuchacz
Systemy takie wykrywają uczucia w odpowiedziach, dokonują rozumowania oraz odpowiadają. Jednakże system i jego ewaluacja są oparte na wcześniej określonych, wyspecyfikowanych scenariuszach, dotyczących konkretnych czynności. Ich celem jest zwiększenie użyteczności i i zadowolenia użytkownika.
synonimy, homonimy i slang
"literówki"
skróty
pominięta interpunkcja
różne akcenty
pozostawanie w temacie
unikanie powtarzalności
generowanie odpowiedzi adekwatnych do emocji
W praktyce możliwe są dwa podejścia do tworzenia chatbotów. Pierwsze z nich polega na wykorzystaniu gotowych szkieletów. Jest to rozwiązanie prostsze, szybsze i tańsze, jednakże często nie jest ono wystarczająco dopasowane do wymagań użytkownika oraz trudne w dopasowaniu do konkretnej realizacji. Przykładami gotowych rozwiązań są np.: Botsify, Chatterbot, RASA, Wit.ai, Botkit, TARS.
Drugie rozwiązanie polega na stworzeniu bota od podstaw. Jest to rozwiązanie zdecydowanie dużo bardziej kosztowne i czasochłonne, jednakże pozwala ono otrzymać produkt w większym stopniu dopasowany do wymogów użytkownika. Niestety, rozwiązanie to wymaga sporego doświadczenia.
Ogólnie, kroki które należy wykonać przed przystąpieniem do budowy własnego chatbota są następujące [4]:Analiza logiki biznesowej
Faza rozpoznania
Analiza rynku konkurencyjnego
Określenie głownych zadań i cech systemu
Stworzenie logiki biznesowej produktu
Emocjonalni wirtualni rozmówcy
sztuczne podmioty wchodzą w interakcję ze sobą lub otoczeniem, a obserwator (człowiek) odczuwa empatię
użytkownicy (ludzie) wchodzą w interakcję ze sobą bądź otoczeniem, a sztuczny podmiot odczuwa empatię.
Tym samym podmioty empatyczne definiujemy jako [13]:Podmioty, które reagują emocjonalnie na sytuacje, które są bardziej zgodne z sytuacją emocjonalną innego podmiotu lub
Podmioty, które poprzez swój projekt i zachowania powodują u użytkowników odpowiedzi, które są bardziej zgodne z sytuacją emocjonalną podmiotu.
Procesy umożliwiające podmiotowi bycie postrzeganym jako cel empatii to [13]:sytuacja/kontekst
cechy obserwatora
mechanizmy empatii
cechy obiektu empatii
modulacja empatii
Wyróżnić można dwa główne typy modeli implementacji empatii [13]:Analityczne - modele te powstają bezpośrednio z modeli teoretycznych i są bardziej adekwatne. Z drugiej strony, modele te są często bardzo ogólne, i nie zawierają wystarczającej ilości informacji do stworzenia praktycznej implementacji modelu. W związku z tym mogą powstawać problemy, z niedokładnością odtowrzenia procesu myślowego twórcy modelu oraz problemu pomyłek w translacji modelu.
Empiryczne - modele te powstają na podstawie danych zebranych na podstawie interakcji emocjonalnych ludzi w sytuacjach empatycznych. Modele są odporne na problem pomyłek w translacji, jednakże zależą w bardzo dużym stopniu od samych danych, na których się opierają. Z tego powodu, są one bardzo trudne do uogólnienia.
FearNot!
Carmen's Bright IDEAS
SimSensei Kiosk
Pytania, na które należy odpowiedzieć sobie, tworząc empatycznego wirtualnego rozmówce, to [13]:Jaki typ zachowania powinien wywoływac empatię?
Jaki wygląd i cechy będą wpływać na wywoływanie empatii? (np. wygląd dziecka)
Jak ważny jest kontekst i sytuacja?
Jakie systemy mediacyjne powinny być zastosowane i w jakich sytuacjach?
Jak możemy zmierzyć efekt, jaki obiekt empatii wywiera na użytkowniku?
podejście wielowymiarowe - określenie emocji jako wektorów
podejście dyskretne - wcześniejsze określenie kategorii emocji i klasyfikacja
modele oceniające - określenie warunkowych rozkładów prawdopodobieństwa występowania danych emocji.
Modele empatycznych systemów dialogowych w znacznej większości są oparte na konwolucyjnych bądź rekurencyjnych sieciach neuronowych. Najczęściej stosowanym rozwiązaniem jest rozwiązanie enkoder-dekoder, gdzie dane wejściowe są najpierw kodowane, następnie trafiają do dwóch/trzech sieci neuronowych - odpowiedzialnych za przetwarzanie treści, przetwarzanie kontekstu i przetwarzanie emocji, a następnie odpowiedzi sieci są ze sobą łączone i dekodowane, oraz generowana jest odpowiedź dla użytkownika. Szczegółowy i bardzo dobrze opisany model można znaleźć w [8]. W modelu tym oblicza się rozkład prawdopodobieństwa wystąpienia danej emocji w odpowiedzi na sygnał nadany przez użytkownika. Emocje przekazywane są do systemu przez etykiety. Rozwiązania, które często znajdują zastosowanie w modelach emocjonalnych to GRU (gated recurrent unit), LSTM (long short-term memory), sequence2sequence, memory networks.
Enkodery uwzględniające emocje różnią się od ogólnych enkoderów tym, iz kontekst który zwracają zawiera również informacje związane z emocjami [12]:Jeżeli dostępne są etykiety emocji dla kontekstu lub danych podanych przez użytkownika, świadomość emocji może zostać łatwo osiągnięta poprzez podanie etykiet jako dodatkowych informacji do enkodera.
Jeżeli etykiety nie są dostępne, konieczne jest zastosowanie dodatkowego detektora emocji w celu przypisania etykiet.
Problemy, z którymi borykają się emocjonalne systemy dialogowe to [12]:braki etykiet
ewaluacja emocji
problem z niespójnością celu uwzględnienia emocji z innymi celami, np. poprawnością gramatyczną
nie wszystkie wyrazy w wypowiedzi powinny być nacechowane emocjonalnie
Przykładowe modele empatycznych rozmówców można znaleźć np. w [10] (jest to jeden z bardziej znanych modeli), czy [9] (oparty na poprzednim modelu, nowszy model z grudnia 2020).
Zadania
Stwórzmy prosty czatbot oparty na przetwarzaniu języka naturalnego i zbiórze reguł. Wykorzystamy do tego framework RASA [1], który jest open source. Zacznijmy od zainstalowania rasy i wszystkich zależności.
Kod Rasa jest asynchroniczny, dlatego potrzemujemy biblioteki asyncio...
pip install nest_asyncio==1.5.*
Defaulting to user installation because normal site-packages is not writeable Requirement already satisfied: nest_asyncio==1.5.* in /usr/local/lib/python3.9/dist-packages (1.5.5) --- Logging error --- Traceback (most recent call last): File "/usr/local/lib/python3.9/dist-packages/pip/_internal/utils/logging.py", line 177, in emit self.console.print(renderable, overflow="ignore", crop=False, style=style) File "/usr/local/lib/python3.9/dist-packages/pip/_vendor/rich/console.py", line 1673, in print extend(render(renderable, render_options)) File "/usr/local/lib/python3.9/dist-packages/pip/_vendor/rich/console.py", line 1305, in render for render_output in iter_render: File "/usr/local/lib/python3.9/dist-packages/pip/_internal/utils/logging.py", line 134, in __rich_console__ for line in lines: File "/usr/local/lib/python3.9/dist-packages/pip/_vendor/rich/segment.py", line 249, in split_lines for segment in segments: File "/usr/local/lib/python3.9/dist-packages/pip/_vendor/rich/console.py", line 1283, in render renderable = rich_cast(renderable) File "/usr/local/lib/python3.9/dist-packages/pip/_vendor/rich/protocol.py", line 36, in rich_cast renderable = cast_method() File "/usr/local/lib/python3.9/dist-packages/pip/_internal/self_outdated_check.py", line 130, in __rich__ pip_cmd = get_best_invocation_for_this_pip() File "/usr/local/lib/python3.9/dist-packages/pip/_internal/utils/entrypoints.py", line 58, in get_best_invocation_for_this_pip if found_executable and os.path.samefile( File "/usr/lib/python3.9/genericpath.py", line 101, in samefile s2 = os.stat(f2) FileNotFoundError: [Errno 2] No such file or directory: '/usr/bin/pip3.9' Call stack: File "/usr/lib/python3.9/runpy.py", line 197, in _run_module_as_main return _run_code(code, main_globals, None, File "/usr/lib/python3.9/runpy.py", line 87, in _run_code exec(code, run_globals) File "/usr/local/lib/python3.9/dist-packages/pip/__main__.py", line 31, in <module> sys.exit(_main()) File "/usr/local/lib/python3.9/dist-packages/pip/_internal/cli/main.py", line 70, in main return command.main(cmd_args) File "/usr/local/lib/python3.9/dist-packages/pip/_internal/cli/base_command.py", line 101, in main return self._main(args) File "/usr/local/lib/python3.9/dist-packages/pip/_internal/cli/base_command.py", line 223, in _main self.handle_pip_version_check(options) File "/usr/local/lib/python3.9/dist-packages/pip/_internal/cli/req_command.py", line 190, in handle_pip_version_check pip_self_version_check(session, options) File "/usr/local/lib/python3.9/dist-packages/pip/_internal/self_outdated_check.py", line 236, in pip_self_version_check logger.warning("[present-rich] %s", upgrade_prompt) File "/usr/lib/python3.9/logging/__init__.py", line 1454, in warning self._log(WARNING, msg, args, **kwargs) File "/usr/lib/python3.9/logging/__init__.py", line 1585, in _log self.handle(record) File "/usr/lib/python3.9/logging/__init__.py", line 1595, in handle self.callHandlers(record) File "/usr/lib/python3.9/logging/__init__.py", line 1657, in callHandlers hdlr.handle(record) File "/usr/lib/python3.9/logging/__init__.py", line 948, in handle self.emit(record) File "/usr/local/lib/python3.9/dist-packages/pip/_internal/utils/logging.py", line 179, in emit self.handleError(record) Message: '[present-rich] %s' Arguments: (UpgradePrompt(old='22.2.2', new='23.0.1'),) Note: you may need to restart the kernel to use updated packages.
...którą importujemy i stosujemy.
import nest_asyncio
nest_asyncio.apply()
Rozwiązujemy problemy z zależnościami:
pip install fbmessenger==6.0.*
Defaulting to user installation because normal site-packages is not writeable Requirement already satisfied: fbmessenger==6.0.* in /home/students/s444341/.local/lib/python3.9/site-packages (6.0.0) Requirement already satisfied: requests>=2.0 in /usr/local/lib/python3.9/dist-packages (from fbmessenger==6.0.*) (2.28.1) Requirement already satisfied: certifi>=2017.4.17 in /usr/local/lib/python3.9/dist-packages (from requests>=2.0->fbmessenger==6.0.*) (2022.9.14) Requirement already satisfied: charset-normalizer<3,>=2 in /usr/local/lib/python3.9/dist-packages (from requests>=2.0->fbmessenger==6.0.*) (2.1.1) Requirement already satisfied: urllib3<1.27,>=1.21.1 in /usr/local/lib/python3.9/dist-packages (from requests>=2.0->fbmessenger==6.0.*) (1.26.12) Requirement already satisfied: idna<4,>=2.5 in /usr/local/lib/python3.9/dist-packages (from requests>=2.0->fbmessenger==6.0.*) (3.4) --- Logging error --- Traceback (most recent call last): File "/usr/local/lib/python3.9/dist-packages/pip/_internal/utils/logging.py", line 177, in emit self.console.print(renderable, overflow="ignore", crop=False, style=style) File "/usr/local/lib/python3.9/dist-packages/pip/_vendor/rich/console.py", line 1673, in print extend(render(renderable, render_options)) File "/usr/local/lib/python3.9/dist-packages/pip/_vendor/rich/console.py", line 1305, in render for render_output in iter_render: File "/usr/local/lib/python3.9/dist-packages/pip/_internal/utils/logging.py", line 134, in __rich_console__ for line in lines: File "/usr/local/lib/python3.9/dist-packages/pip/_vendor/rich/segment.py", line 249, in split_lines for segment in segments: File "/usr/local/lib/python3.9/dist-packages/pip/_vendor/rich/console.py", line 1283, in render renderable = rich_cast(renderable) File "/usr/local/lib/python3.9/dist-packages/pip/_vendor/rich/protocol.py", line 36, in rich_cast renderable = cast_method() File "/usr/local/lib/python3.9/dist-packages/pip/_internal/self_outdated_check.py", line 130, in __rich__ pip_cmd = get_best_invocation_for_this_pip() File "/usr/local/lib/python3.9/dist-packages/pip/_internal/utils/entrypoints.py", line 58, in get_best_invocation_for_this_pip if found_executable and os.path.samefile( File "/usr/lib/python3.9/genericpath.py", line 101, in samefile s2 = os.stat(f2) FileNotFoundError: [Errno 2] No such file or directory: '/usr/bin/pip3.9' Call stack: File "/usr/lib/python3.9/runpy.py", line 197, in _run_module_as_main return _run_code(code, main_globals, None, File "/usr/lib/python3.9/runpy.py", line 87, in _run_code exec(code, run_globals) File "/usr/local/lib/python3.9/dist-packages/pip/__main__.py", line 31, in <module> sys.exit(_main()) File "/usr/local/lib/python3.9/dist-packages/pip/_internal/cli/main.py", line 70, in main return command.main(cmd_args) File "/usr/local/lib/python3.9/dist-packages/pip/_internal/cli/base_command.py", line 101, in main return self._main(args) File "/usr/local/lib/python3.9/dist-packages/pip/_internal/cli/base_command.py", line 223, in _main self.handle_pip_version_check(options) File "/usr/local/lib/python3.9/dist-packages/pip/_internal/cli/req_command.py", line 190, in handle_pip_version_check pip_self_version_check(session, options) File "/usr/local/lib/python3.9/dist-packages/pip/_internal/self_outdated_check.py", line 236, in pip_self_version_check logger.warning("[present-rich] %s", upgrade_prompt) File "/usr/lib/python3.9/logging/__init__.py", line 1454, in warning self._log(WARNING, msg, args, **kwargs) File "/usr/lib/python3.9/logging/__init__.py", line 1585, in _log self.handle(record) File "/usr/lib/python3.9/logging/__init__.py", line 1595, in handle self.callHandlers(record) File "/usr/lib/python3.9/logging/__init__.py", line 1657, in callHandlers hdlr.handle(record) File "/usr/lib/python3.9/logging/__init__.py", line 948, in handle self.emit(record) File "/usr/local/lib/python3.9/dist-packages/pip/_internal/utils/logging.py", line 179, in emit self.handleError(record) Message: '[present-rich] %s' Arguments: (UpgradePrompt(old='22.2.2', new='23.0.1'),) Note: you may need to restart the kernel to use updated packages.
pip install pykwalify==1.8.*
Defaulting to user installation because normal site-packages is not writeable Requirement already satisfied: pykwalify==1.8.* in /home/students/s444341/.local/lib/python3.9/site-packages (1.8.0) Requirement already satisfied: python-dateutil>=2.8.0 in /usr/local/lib/python3.9/dist-packages (from pykwalify==1.8.*) (2.8.2) Requirement already satisfied: docopt>=0.6.2 in /home/students/s444341/.local/lib/python3.9/site-packages (from pykwalify==1.8.*) (0.6.2) Requirement already satisfied: ruamel.yaml>=0.16.0 in /home/students/s444341/.local/lib/python3.9/site-packages (from pykwalify==1.8.*) (0.16.13) Requirement already satisfied: six>=1.5 in /usr/lib/python3/dist-packages (from python-dateutil>=2.8.0->pykwalify==1.8.*) (1.16.0) Requirement already satisfied: ruamel.yaml.clib>=0.1.2 in /usr/local/lib/python3.9/dist-packages (from ruamel.yaml>=0.16.0->pykwalify==1.8.*) (0.2.6) --- Logging error --- Traceback (most recent call last): File "/usr/local/lib/python3.9/dist-packages/pip/_internal/utils/logging.py", line 177, in emit self.console.print(renderable, overflow="ignore", crop=False, style=style) File "/usr/local/lib/python3.9/dist-packages/pip/_vendor/rich/console.py", line 1673, in print extend(render(renderable, render_options)) File "/usr/local/lib/python3.9/dist-packages/pip/_vendor/rich/console.py", line 1305, in render for render_output in iter_render: File "/usr/local/lib/python3.9/dist-packages/pip/_internal/utils/logging.py", line 134, in __rich_console__ for line in lines: File "/usr/local/lib/python3.9/dist-packages/pip/_vendor/rich/segment.py", line 249, in split_lines for segment in segments: File "/usr/local/lib/python3.9/dist-packages/pip/_vendor/rich/console.py", line 1283, in render renderable = rich_cast(renderable) File "/usr/local/lib/python3.9/dist-packages/pip/_vendor/rich/protocol.py", line 36, in rich_cast renderable = cast_method() File "/usr/local/lib/python3.9/dist-packages/pip/_internal/self_outdated_check.py", line 130, in __rich__ pip_cmd = get_best_invocation_for_this_pip() File "/usr/local/lib/python3.9/dist-packages/pip/_internal/utils/entrypoints.py", line 58, in get_best_invocation_for_this_pip if found_executable and os.path.samefile( File "/usr/lib/python3.9/genericpath.py", line 101, in samefile s2 = os.stat(f2) FileNotFoundError: [Errno 2] No such file or directory: '/usr/bin/pip3.9' Call stack: File "/usr/lib/python3.9/runpy.py", line 197, in _run_module_as_main return _run_code(code, main_globals, None, File "/usr/lib/python3.9/runpy.py", line 87, in _run_code exec(code, run_globals) File "/usr/local/lib/python3.9/dist-packages/pip/__main__.py", line 31, in <module> sys.exit(_main()) File "/usr/local/lib/python3.9/dist-packages/pip/_internal/cli/main.py", line 70, in main return command.main(cmd_args) File "/usr/local/lib/python3.9/dist-packages/pip/_internal/cli/base_command.py", line 101, in main return self._main(args) File "/usr/local/lib/python3.9/dist-packages/pip/_internal/cli/base_command.py", line 223, in _main self.handle_pip_version_check(options) File "/usr/local/lib/python3.9/dist-packages/pip/_internal/cli/req_command.py", line 190, in handle_pip_version_check pip_self_version_check(session, options) File "/usr/local/lib/python3.9/dist-packages/pip/_internal/self_outdated_check.py", line 236, in pip_self_version_check logger.warning("[present-rich] %s", upgrade_prompt) File "/usr/lib/python3.9/logging/__init__.py", line 1454, in warning self._log(WARNING, msg, args, **kwargs) File "/usr/lib/python3.9/logging/__init__.py", line 1585, in _log self.handle(record) File "/usr/lib/python3.9/logging/__init__.py", line 1595, in handle self.callHandlers(record) File "/usr/lib/python3.9/logging/__init__.py", line 1657, in callHandlers hdlr.handle(record) File "/usr/lib/python3.9/logging/__init__.py", line 948, in handle self.emit(record) File "/usr/local/lib/python3.9/dist-packages/pip/_internal/utils/logging.py", line 179, in emit self.handleError(record) Message: '[present-rich] %s' Arguments: (UpgradePrompt(old='22.2.2', new='23.0.1'),) Note: you may need to restart the kernel to use updated packages.
pip install keras==2.8.*
Defaulting to user installation because normal site-packages is not writeable Requirement already satisfied: keras==2.8.* in /home/students/s444341/.local/lib/python3.9/site-packages (2.8.0) --- Logging error --- Traceback (most recent call last): File "/usr/local/lib/python3.9/dist-packages/pip/_internal/utils/logging.py", line 177, in emit self.console.print(renderable, overflow="ignore", crop=False, style=style) File "/usr/local/lib/python3.9/dist-packages/pip/_vendor/rich/console.py", line 1673, in print extend(render(renderable, render_options)) File "/usr/local/lib/python3.9/dist-packages/pip/_vendor/rich/console.py", line 1305, in render for render_output in iter_render: File "/usr/local/lib/python3.9/dist-packages/pip/_internal/utils/logging.py", line 134, in __rich_console__ for line in lines: File "/usr/local/lib/python3.9/dist-packages/pip/_vendor/rich/segment.py", line 249, in split_lines for segment in segments: File "/usr/local/lib/python3.9/dist-packages/pip/_vendor/rich/console.py", line 1283, in render renderable = rich_cast(renderable) File "/usr/local/lib/python3.9/dist-packages/pip/_vendor/rich/protocol.py", line 36, in rich_cast renderable = cast_method() File "/usr/local/lib/python3.9/dist-packages/pip/_internal/self_outdated_check.py", line 130, in __rich__ pip_cmd = get_best_invocation_for_this_pip() File "/usr/local/lib/python3.9/dist-packages/pip/_internal/utils/entrypoints.py", line 58, in get_best_invocation_for_this_pip if found_executable and os.path.samefile( File "/usr/lib/python3.9/genericpath.py", line 101, in samefile s2 = os.stat(f2) FileNotFoundError: [Errno 2] No such file or directory: '/usr/bin/pip3.9' Call stack: File "/usr/lib/python3.9/runpy.py", line 197, in _run_module_as_main return _run_code(code, main_globals, None, File "/usr/lib/python3.9/runpy.py", line 87, in _run_code exec(code, run_globals) File "/usr/local/lib/python3.9/dist-packages/pip/__main__.py", line 31, in <module> sys.exit(_main()) File "/usr/local/lib/python3.9/dist-packages/pip/_internal/cli/main.py", line 70, in main return command.main(cmd_args) File "/usr/local/lib/python3.9/dist-packages/pip/_internal/cli/base_command.py", line 101, in main return self._main(args) File "/usr/local/lib/python3.9/dist-packages/pip/_internal/cli/base_command.py", line 223, in _main self.handle_pip_version_check(options) File "/usr/local/lib/python3.9/dist-packages/pip/_internal/cli/req_command.py", line 190, in handle_pip_version_check pip_self_version_check(session, options) File "/usr/local/lib/python3.9/dist-packages/pip/_internal/self_outdated_check.py", line 236, in pip_self_version_check logger.warning("[present-rich] %s", upgrade_prompt) File "/usr/lib/python3.9/logging/__init__.py", line 1454, in warning self._log(WARNING, msg, args, **kwargs) File "/usr/lib/python3.9/logging/__init__.py", line 1585, in _log self.handle(record) File "/usr/lib/python3.9/logging/__init__.py", line 1595, in handle self.callHandlers(record) File "/usr/lib/python3.9/logging/__init__.py", line 1657, in callHandlers hdlr.handle(record) File "/usr/lib/python3.9/logging/__init__.py", line 948, in handle self.emit(record) File "/usr/local/lib/python3.9/dist-packages/pip/_internal/utils/logging.py", line 179, in emit self.handleError(record) Message: '[present-rich] %s' Arguments: (UpgradePrompt(old='22.2.2', new='23.0.1'),) Note: you may need to restart the kernel to use updated packages.
pip install tensorflow==2.7.*
Defaulting to user installation because normal site-packages is not writeable Collecting tensorflow==2.7.* Using cached tensorflow-2.7.4-cp39-cp39-manylinux2010_x86_64.whl (496.1 MB) Requirement already satisfied: gast<0.5.0,>=0.2.1 in /home/students/s444341/.local/lib/python3.9/site-packages (from tensorflow==2.7.*) (0.4.0) Requirement already satisfied: tensorboard~=2.6 in /home/students/s444341/.local/lib/python3.9/site-packages (from tensorflow==2.7.*) (2.8.0) Collecting tensorflow-estimator<2.8,~=2.7.0rc0 Using cached tensorflow_estimator-2.7.0-py2.py3-none-any.whl (463 kB) Requirement already satisfied: numpy>=1.14.5 in /home/students/s444341/.local/lib/python3.9/site-packages (from tensorflow==2.7.*) (1.23.5) Requirement already satisfied: absl-py>=0.4.0 in /home/students/s444341/.local/lib/python3.9/site-packages (from tensorflow==2.7.*) (1.2.0) Requirement already satisfied: termcolor>=1.1.0 in /home/students/s444341/.local/lib/python3.9/site-packages (from tensorflow==2.7.*) (2.2.0) Requirement already satisfied: typing-extensions>=3.6.6 in /home/students/s444341/.local/lib/python3.9/site-packages (from tensorflow==2.7.*) (4.5.0) Requirement already satisfied: six>=1.12.0 in /usr/lib/python3/dist-packages (from tensorflow==2.7.*) (1.16.0) Requirement already satisfied: opt-einsum>=2.3.2 in /home/students/s444341/.local/lib/python3.9/site-packages (from tensorflow==2.7.*) (3.3.0) Requirement already satisfied: keras-preprocessing>=1.1.1 in /home/students/s444341/.local/lib/python3.9/site-packages (from tensorflow==2.7.*) (1.1.2) Requirement already satisfied: tensorflow-io-gcs-filesystem>=0.21.0 in /home/students/s444341/.local/lib/python3.9/site-packages (from tensorflow==2.7.*) (0.32.0) Requirement already satisfied: h5py>=2.9.0 in /home/students/s444341/.local/lib/python3.9/site-packages (from tensorflow==2.7.*) (3.8.0) Requirement already satisfied: wheel<1.0,>=0.32.0 in /usr/lib/python3/dist-packages (from tensorflow==2.7.*) (0.34.2) Requirement already satisfied: google-pasta>=0.1.1 in /home/students/s444341/.local/lib/python3.9/site-packages (from tensorflow==2.7.*) (0.2.0) Requirement already satisfied: protobuf<3.20,>=3.9.2 in /home/students/s444341/.local/lib/python3.9/site-packages (from tensorflow==2.7.*) (3.19.6) Requirement already satisfied: wrapt>=1.11.0 in /home/students/s444341/.local/lib/python3.9/site-packages (from tensorflow==2.7.*) (1.15.0) Requirement already satisfied: astunparse>=1.6.0 in /home/students/s444341/.local/lib/python3.9/site-packages (from tensorflow==2.7.*) (1.6.3) Collecting keras<2.8,>=2.7.0rc0 Using cached keras-2.7.0-py2.py3-none-any.whl (1.3 MB) Requirement already satisfied: flatbuffers<3.0,>=1.12 in /home/students/s444341/.local/lib/python3.9/site-packages (from tensorflow==2.7.*) (2.0.7) Requirement already satisfied: grpcio<2.0,>=1.24.3 in /home/students/s444341/.local/lib/python3.9/site-packages (from tensorflow==2.7.*) (1.53.0) Requirement already satisfied: libclang>=9.0.1 in /home/students/s444341/.local/lib/python3.9/site-packages (from tensorflow==2.7.*) (16.0.0) Requirement already satisfied: tensorboard-plugin-wit>=1.6.0 in /home/students/s444341/.local/lib/python3.9/site-packages (from tensorboard~=2.6->tensorflow==2.7.*) (1.8.1) Requirement already satisfied: google-auth<3,>=1.6.3 in /home/students/s444341/.local/lib/python3.9/site-packages (from tensorboard~=2.6->tensorflow==2.7.*) (1.35.0) Requirement already satisfied: werkzeug>=0.11.15 in /home/students/s444341/.local/lib/python3.9/site-packages (from tensorboard~=2.6->tensorflow==2.7.*) (2.2.3) Requirement already satisfied: tensorboard-data-server<0.7.0,>=0.6.0 in /home/students/s444341/.local/lib/python3.9/site-packages (from tensorboard~=2.6->tensorflow==2.7.*) (0.6.1) Requirement already satisfied: google-auth-oauthlib<0.5,>=0.4.1 in /home/students/s444341/.local/lib/python3.9/site-packages (from tensorboard~=2.6->tensorflow==2.7.*) (0.4.6) Requirement already satisfied: requests<3,>=2.21.0 in /usr/local/lib/python3.9/dist-packages (from tensorboard~=2.6->tensorflow==2.7.*) (2.28.1) Requirement already satisfied: markdown>=2.6.8 in /home/students/s444341/.local/lib/python3.9/site-packages (from tensorboard~=2.6->tensorflow==2.7.*) (3.4.3) Requirement already satisfied: setuptools>=41.0.0 in /usr/lib/python3/dist-packages (from tensorboard~=2.6->tensorflow==2.7.*) (52.0.0) Requirement already satisfied: cachetools<5.0,>=2.0.0 in /home/students/s444341/.local/lib/python3.9/site-packages (from google-auth<3,>=1.6.3->tensorboard~=2.6->tensorflow==2.7.*) (4.2.4) Requirement already satisfied: rsa<5,>=3.1.4 in /home/students/s444341/.local/lib/python3.9/site-packages (from google-auth<3,>=1.6.3->tensorboard~=2.6->tensorflow==2.7.*) (4.9) Requirement already satisfied: pyasn1-modules>=0.2.1 in /home/students/s444341/.local/lib/python3.9/site-packages (from google-auth<3,>=1.6.3->tensorboard~=2.6->tensorflow==2.7.*) (0.2.8) Requirement already satisfied: requests-oauthlib>=0.7.0 in /home/students/s444341/.local/lib/python3.9/site-packages (from google-auth-oauthlib<0.5,>=0.4.1->tensorboard~=2.6->tensorflow==2.7.*) (1.3.1) Requirement already satisfied: importlib-metadata>=4.4 in /usr/local/lib/python3.9/dist-packages (from markdown>=2.6.8->tensorboard~=2.6->tensorflow==2.7.*) (4.12.0) Requirement already satisfied: charset-normalizer<3,>=2 in /usr/local/lib/python3.9/dist-packages (from requests<3,>=2.21.0->tensorboard~=2.6->tensorflow==2.7.*) (2.1.1) Requirement already satisfied: certifi>=2017.4.17 in /usr/local/lib/python3.9/dist-packages (from requests<3,>=2.21.0->tensorboard~=2.6->tensorflow==2.7.*) (2022.9.14) Requirement already satisfied: idna<4,>=2.5 in /usr/local/lib/python3.9/dist-packages (from requests<3,>=2.21.0->tensorboard~=2.6->tensorflow==2.7.*) (3.4) Requirement already satisfied: urllib3<1.27,>=1.21.1 in /usr/local/lib/python3.9/dist-packages (from requests<3,>=2.21.0->tensorboard~=2.6->tensorflow==2.7.*) (1.26.12) Requirement already satisfied: MarkupSafe>=2.1.1 in /usr/local/lib/python3.9/dist-packages (from werkzeug>=0.11.15->tensorboard~=2.6->tensorflow==2.7.*) (2.1.1) Requirement already satisfied: zipp>=0.5 in /usr/lib/python3/dist-packages (from importlib-metadata>=4.4->markdown>=2.6.8->tensorboard~=2.6->tensorflow==2.7.*) (1.0.0) Requirement already satisfied: pyasn1<0.5.0,>=0.4.6 in /home/students/s444341/.local/lib/python3.9/site-packages (from pyasn1-modules>=0.2.1->google-auth<3,>=1.6.3->tensorboard~=2.6->tensorflow==2.7.*) (0.4.8) Requirement already satisfied: oauthlib>=3.0.0 in /usr/local/lib/python3.9/dist-packages (from requests-oauthlib>=0.7.0->google-auth-oauthlib<0.5,>=0.4.1->tensorboard~=2.6->tensorflow==2.7.*) (3.2.1) Installing collected packages: tensorflow-estimator, keras, tensorflow Attempting uninstall: tensorflow-estimator Found existing installation: tensorflow-estimator 2.8.0 Uninstalling tensorflow-estimator-2.8.0: Successfully uninstalled tensorflow-estimator-2.8.0 Attempting uninstall: keras Found existing installation: keras 2.8.0 Uninstalling keras-2.8.0: Successfully uninstalled keras-2.8.0 Attempting uninstall: tensorflow Found existing installation: tensorflow 2.8.4 Uninstalling tensorflow-2.8.4: Successfully uninstalled tensorflow-2.8.4 [33m WARNING: The scripts estimator_ckpt_converter, import_pb_to_tensorboard, saved_model_cli, tensorboard, tf_upgrade_v2, tflite_convert, toco and toco_from_protos are installed in '/home/students/s444341/.local/bin' which is not on PATH. Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.[0m[33m [0m[31mERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts. tensorflow-text 2.8.2 requires tensorflow<2.9,>=2.8.0; platform_machine != "arm64" or platform_system != "Darwin", but you have tensorflow 2.7.4 which is incompatible. rasa 3.3.6 requires tensorflow<2.9.0,>=2.8.4; sys_platform != "darwin" or platform_machine != "arm64", but you have tensorflow 2.7.4 which is incompatible.[0m[31m [0mSuccessfully installed keras-2.7.0 tensorflow-2.7.4 tensorflow-estimator-2.7.0 --- Logging error --- Traceback (most recent call last): File "/usr/local/lib/python3.9/dist-packages/pip/_internal/utils/logging.py", line 177, in emit self.console.print(renderable, overflow="ignore", crop=False, style=style) File "/usr/local/lib/python3.9/dist-packages/pip/_vendor/rich/console.py", line 1673, in print extend(render(renderable, render_options)) File "/usr/local/lib/python3.9/dist-packages/pip/_vendor/rich/console.py", line 1305, in render for render_output in iter_render: File "/usr/local/lib/python3.9/dist-packages/pip/_internal/utils/logging.py", line 134, in __rich_console__ for line in lines: File "/usr/local/lib/python3.9/dist-packages/pip/_vendor/rich/segment.py", line 249, in split_lines for segment in segments: File "/usr/local/lib/python3.9/dist-packages/pip/_vendor/rich/console.py", line 1283, in render renderable = rich_cast(renderable) File "/usr/local/lib/python3.9/dist-packages/pip/_vendor/rich/protocol.py", line 36, in rich_cast renderable = cast_method() File "/usr/local/lib/python3.9/dist-packages/pip/_internal/self_outdated_check.py", line 130, in __rich__ pip_cmd = get_best_invocation_for_this_pip() File "/usr/local/lib/python3.9/dist-packages/pip/_internal/utils/entrypoints.py", line 58, in get_best_invocation_for_this_pip if found_executable and os.path.samefile( File "/usr/lib/python3.9/genericpath.py", line 101, in samefile s2 = os.stat(f2) FileNotFoundError: [Errno 2] No such file or directory: '/usr/bin/pip3.9' Call stack: File "/usr/lib/python3.9/runpy.py", line 197, in _run_module_as_main return _run_code(code, main_globals, None, File "/usr/lib/python3.9/runpy.py", line 87, in _run_code exec(code, run_globals) File "/usr/local/lib/python3.9/dist-packages/pip/__main__.py", line 31, in <module> sys.exit(_main()) File "/usr/local/lib/python3.9/dist-packages/pip/_internal/cli/main.py", line 70, in main return command.main(cmd_args) File "/usr/local/lib/python3.9/dist-packages/pip/_internal/cli/base_command.py", line 101, in main return self._main(args) File "/usr/local/lib/python3.9/dist-packages/pip/_internal/cli/base_command.py", line 223, in _main self.handle_pip_version_check(options) File "/usr/local/lib/python3.9/dist-packages/pip/_internal/cli/req_command.py", line 190, in handle_pip_version_check pip_self_version_check(session, options) File "/usr/local/lib/python3.9/dist-packages/pip/_internal/self_outdated_check.py", line 236, in pip_self_version_check logger.warning("[present-rich] %s", upgrade_prompt) File "/usr/lib/python3.9/logging/__init__.py", line 1454, in warning self._log(WARNING, msg, args, **kwargs) File "/usr/lib/python3.9/logging/__init__.py", line 1585, in _log self.handle(record) File "/usr/lib/python3.9/logging/__init__.py", line 1595, in handle self.callHandlers(record) File "/usr/lib/python3.9/logging/__init__.py", line 1657, in callHandlers hdlr.handle(record) File "/usr/lib/python3.9/logging/__init__.py", line 948, in handle self.emit(record) File "/usr/local/lib/python3.9/dist-packages/pip/_internal/utils/logging.py", line 179, in emit self.handleError(record) Message: '[present-rich] %s' Arguments: (UpgradePrompt(old='22.2.2', new='23.0.1'),) Note: you may need to restart the kernel to use updated packages.
Teraz powinno już nie być problemów z zainstalowaniem Rasa.
pip install matplotlib==3.4.0
Defaulting to user installation because normal site-packages is not writeable Requirement already satisfied: matplotlib==3.4.0 in /home/students/s444341/.local/lib/python3.9/site-packages (3.4.0) Requirement already satisfied: python-dateutil>=2.7 in /usr/local/lib/python3.9/dist-packages (from matplotlib==3.4.0) (2.8.2) Requirement already satisfied: cycler>=0.10 in /usr/lib/python3/dist-packages (from matplotlib==3.4.0) (0.10.0) Requirement already satisfied: numpy>=1.16 in /home/students/s444341/.local/lib/python3.9/site-packages (from matplotlib==3.4.0) (1.23.5) Requirement already satisfied: pillow>=6.2.0 in /usr/lib/python3/dist-packages (from matplotlib==3.4.0) (8.1.2) Requirement already satisfied: kiwisolver>=1.0.1 in /usr/lib/python3/dist-packages (from matplotlib==3.4.0) (1.3.1) Requirement already satisfied: pyparsing>=2.2.1 in /usr/lib/python3/dist-packages (from matplotlib==3.4.0) (2.4.7) Requirement already satisfied: six>=1.5 in /usr/lib/python3/dist-packages (from python-dateutil>=2.7->matplotlib==3.4.0) (1.16.0) --- Logging error --- Traceback (most recent call last): File "/usr/local/lib/python3.9/dist-packages/pip/_internal/utils/logging.py", line 177, in emit self.console.print(renderable, overflow="ignore", crop=False, style=style) File "/usr/local/lib/python3.9/dist-packages/pip/_vendor/rich/console.py", line 1673, in print extend(render(renderable, render_options)) File "/usr/local/lib/python3.9/dist-packages/pip/_vendor/rich/console.py", line 1305, in render for render_output in iter_render: File "/usr/local/lib/python3.9/dist-packages/pip/_internal/utils/logging.py", line 134, in __rich_console__ for line in lines: File "/usr/local/lib/python3.9/dist-packages/pip/_vendor/rich/segment.py", line 249, in split_lines for segment in segments: File "/usr/local/lib/python3.9/dist-packages/pip/_vendor/rich/console.py", line 1283, in render renderable = rich_cast(renderable) File "/usr/local/lib/python3.9/dist-packages/pip/_vendor/rich/protocol.py", line 36, in rich_cast renderable = cast_method() File "/usr/local/lib/python3.9/dist-packages/pip/_internal/self_outdated_check.py", line 130, in __rich__ pip_cmd = get_best_invocation_for_this_pip() File "/usr/local/lib/python3.9/dist-packages/pip/_internal/utils/entrypoints.py", line 58, in get_best_invocation_for_this_pip if found_executable and os.path.samefile( File "/usr/lib/python3.9/genericpath.py", line 101, in samefile s2 = os.stat(f2) FileNotFoundError: [Errno 2] No such file or directory: '/usr/bin/pip3.9' Call stack: File "/usr/lib/python3.9/runpy.py", line 197, in _run_module_as_main return _run_code(code, main_globals, None, File "/usr/lib/python3.9/runpy.py", line 87, in _run_code exec(code, run_globals) File "/usr/local/lib/python3.9/dist-packages/pip/__main__.py", line 31, in <module> sys.exit(_main()) File "/usr/local/lib/python3.9/dist-packages/pip/_internal/cli/main.py", line 70, in main return command.main(cmd_args) File "/usr/local/lib/python3.9/dist-packages/pip/_internal/cli/base_command.py", line 101, in main return self._main(args) File "/usr/local/lib/python3.9/dist-packages/pip/_internal/cli/base_command.py", line 223, in _main self.handle_pip_version_check(options) File "/usr/local/lib/python3.9/dist-packages/pip/_internal/cli/req_command.py", line 190, in handle_pip_version_check pip_self_version_check(session, options) File "/usr/local/lib/python3.9/dist-packages/pip/_internal/self_outdated_check.py", line 236, in pip_self_version_check logger.warning("[present-rich] %s", upgrade_prompt) File "/usr/lib/python3.9/logging/__init__.py", line 1454, in warning self._log(WARNING, msg, args, **kwargs) File "/usr/lib/python3.9/logging/__init__.py", line 1585, in _log self.handle(record) File "/usr/lib/python3.9/logging/__init__.py", line 1595, in handle self.callHandlers(record) File "/usr/lib/python3.9/logging/__init__.py", line 1657, in callHandlers hdlr.handle(record) File "/usr/lib/python3.9/logging/__init__.py", line 948, in handle self.emit(record) File "/usr/local/lib/python3.9/dist-packages/pip/_internal/utils/logging.py", line 179, in emit self.handleError(record) Message: '[present-rich] %s' Arguments: (UpgradePrompt(old='22.2.2', new='23.0.1'),) Note: you may need to restart the kernel to use updated packages.
pip install rasa[full]==3.3.*
Defaulting to user installation because normal site-packages is not writeable Requirement already satisfied: rasa[full]==3.3.* in /home/students/s444341/.local/lib/python3.9/site-packages (3.3.6) Requirement already satisfied: SQLAlchemy<1.5.0,>=1.4.0 in /usr/local/lib/python3.9/dist-packages (from rasa[full]==3.3.*) (1.4.41) Requirement already satisfied: colorclass<2.3,>=2.2 in /home/students/s444341/.local/lib/python3.9/site-packages (from rasa[full]==3.3.*) (2.2.2) Requirement already satisfied: boto3<2.0,>=1.12 in /home/students/s444341/.local/lib/python3.9/site-packages (from rasa[full]==3.3.*) (1.26.101) Requirement already satisfied: twilio<7.15,>=6.26 in /home/students/s444341/.local/lib/python3.9/site-packages (from rasa[full]==3.3.*) (6.50.1) Requirement already satisfied: absl-py<1.3,>=0.9 in /home/students/s444341/.local/lib/python3.9/site-packages (from rasa[full]==3.3.*) (1.2.0) Requirement already satisfied: pydot<1.5,>=1.4 in /usr/local/lib/python3.9/dist-packages (from rasa[full]==3.3.*) (1.4.2) Requirement already satisfied: setuptools>=41.0.0 in /usr/lib/python3/dist-packages (from rasa[full]==3.3.*) (52.0.0) Requirement already satisfied: apscheduler<3.10,>=3.6 in /home/students/s444341/.local/lib/python3.9/site-packages (from rasa[full]==3.3.*) (3.7.0) Requirement already satisfied: CacheControl<0.13.0,>=0.12.9 in /home/students/s444341/.local/lib/python3.9/site-packages (from rasa[full]==3.3.*) (0.12.11) Requirement already satisfied: sklearn-crfsuite<0.4,>=0.3 in /home/students/s444341/.local/lib/python3.9/site-packages (from rasa[full]==3.3.*) (0.3.6) Requirement already satisfied: pluggy<2.0.0,>=1.0.0 in /home/students/s444341/.local/lib/python3.9/site-packages (from rasa[full]==3.3.*) (1.0.0) Requirement already satisfied: requests<3.0,>=2.23 in /usr/local/lib/python3.9/dist-packages (from rasa[full]==3.3.*) (2.28.1) Requirement already satisfied: typing-extensions<5.0.0,>=3.7.4 in /home/students/s444341/.local/lib/python3.9/site-packages (from rasa[full]==3.3.*) (4.5.0) Requirement already satisfied: prompt-toolkit<3.0.29,>=3.0 in /home/students/s444341/.local/lib/python3.9/site-packages (from rasa[full]==3.3.*) (3.0.28) Requirement already satisfied: protobuf<3.20,>=3.9.2 in /home/students/s444341/.local/lib/python3.9/site-packages (from rasa[full]==3.3.*) (3.19.6) Requirement already satisfied: ujson<6.0,>=1.35 in /home/students/s444341/.local/lib/python3.9/site-packages (from rasa[full]==3.3.*) (5.7.0) Requirement already satisfied: questionary<1.11.0,>=1.5.1 in /home/students/s444341/.local/lib/python3.9/site-packages (from rasa[full]==3.3.*) (1.10.0) Requirement already satisfied: terminaltables<3.2.0,>=3.1.0 in /home/students/s444341/.local/lib/python3.9/site-packages (from rasa[full]==3.3.*) (3.1.10) Requirement already satisfied: kafka-python<3.0,>=1.4 in /home/students/s444341/.local/lib/python3.9/site-packages (from rasa[full]==3.3.*) (2.0.2) Requirement already satisfied: packaging<21.0,>=20.0 in /home/students/s444341/.local/lib/python3.9/site-packages (from rasa[full]==3.3.*) (20.9) Requirement already satisfied: slackclient<3.0.0,>=2.0.0 in /home/students/s444341/.local/lib/python3.9/site-packages (from rasa[full]==3.3.*) (2.9.4) Requirement already satisfied: pykwalify<1.9,>=1.7 in /home/students/s444341/.local/lib/python3.9/site-packages (from rasa[full]==3.3.*) (1.8.0) Requirement already satisfied: tensorflow-addons<0.18.0,>=0.17.0 in /home/students/s444341/.local/lib/python3.9/site-packages (from rasa[full]==3.3.*) (0.17.1) Requirement already satisfied: tensorflow-text<2.9.0,>=2.8.0 in /home/students/s444341/.local/lib/python3.9/site-packages (from rasa[full]==3.3.*) (2.8.2) Requirement already satisfied: dask==2022.2.0 in /home/students/s444341/.local/lib/python3.9/site-packages (from rasa[full]==3.3.*) (2022.2.0) Requirement already satisfied: google-auth<3 in /home/students/s444341/.local/lib/python3.9/site-packages (from rasa[full]==3.3.*) (1.35.0) Requirement already satisfied: sanic-cors<2.1.0,>=2.0.0 in /home/students/s444341/.local/lib/python3.9/site-packages (from rasa[full]==3.3.*) (2.0.1) Requirement already satisfied: mattermostwrapper<2.3,>=2.2 in /home/students/s444341/.local/lib/python3.9/site-packages (from rasa[full]==3.3.*) (2.2) Requirement already satisfied: python-socketio<6,>=4.4 in /home/students/s444341/.local/lib/python3.9/site-packages (from rasa[full]==3.3.*) (5.8.0) Requirement already satisfied: sanic-jwt<2.0.0,>=1.6.0 in /home/students/s444341/.local/lib/python3.9/site-packages (from rasa[full]==3.3.*) (1.8.0) Requirement already satisfied: scipy<1.9.0,>=1.4.1 in /usr/lib/python3/dist-packages (from rasa[full]==3.3.*) (1.6.0) Requirement already satisfied: typing-utils<0.2.0,>=0.1.0 in /home/students/s444341/.local/lib/python3.9/site-packages (from rasa[full]==3.3.*) (0.1.0) Requirement already satisfied: webexteamssdk<1.7.0,>=1.1.1 in /home/students/s444341/.local/lib/python3.9/site-packages (from rasa[full]==3.3.*) (1.6.1) Requirement already satisfied: matplotlib<3.6,>=3.1 in /home/students/s444341/.local/lib/python3.9/site-packages (from rasa[full]==3.3.*) (3.4.0) Requirement already satisfied: joblib<1.3.0,>=0.15.1 in /usr/lib/python3/dist-packages (from rasa[full]==3.3.*) (0.17.0) Requirement already satisfied: rasa-sdk<3.4.0,>=3.3.0 in /home/students/s444341/.local/lib/python3.9/site-packages (from rasa[full]==3.3.*) (3.3.1) Requirement already satisfied: sanic<21.13,>=21.12 in /home/students/s444341/.local/lib/python3.9/site-packages (from rasa[full]==3.3.*) (21.12.2) Requirement already satisfied: pymongo[srv,tls]<3.11,>=3.8 in /home/students/s444341/.local/lib/python3.9/site-packages (from rasa[full]==3.3.*) (3.10.1) Requirement already satisfied: colorhash<1.2.0,>=1.0.2 in /home/students/s444341/.local/lib/python3.9/site-packages (from rasa[full]==3.3.*) (1.0.4) Requirement already satisfied: coloredlogs<16,>=10 in /home/students/s444341/.local/lib/python3.9/site-packages (from rasa[full]==3.3.*) (15.0.1) Requirement already satisfied: randomname<0.2.0,>=0.1.5 in /home/students/s444341/.local/lib/python3.9/site-packages (from rasa[full]==3.3.*) (0.1.5) Requirement already satisfied: tarsafe<0.0.4,>=0.0.3 in /home/students/s444341/.local/lib/python3.9/site-packages (from rasa[full]==3.3.*) (0.0.3) Requirement already satisfied: jsonschema<4.17,>=3.2 in /home/students/s444341/.local/lib/python3.9/site-packages (from rasa[full]==3.3.*) (4.4.0) Requirement already satisfied: sentry-sdk<1.10.0,>=0.17.0 in /home/students/s444341/.local/lib/python3.9/site-packages (from rasa[full]==3.3.*) (1.3.1) Requirement already satisfied: tqdm<5.0,>=4.31 in /usr/local/lib/python3.9/dist-packages (from rasa[full]==3.3.*) (4.64.1) Requirement already satisfied: psycopg2-binary<2.10.0,>=2.8.2 in /home/students/s444341/.local/lib/python3.9/site-packages (from rasa[full]==3.3.*) (2.9.5) Requirement already satisfied: PyJWT[crypto]<3.0.0,>=2.0.0 in /home/students/s444341/.local/lib/python3.9/site-packages (from rasa[full]==3.3.*) (2.6.0) Requirement already satisfied: aiogram<2.20 in /home/students/s444341/.local/lib/python3.9/site-packages (from rasa[full]==3.3.*) (2.15) Requirement already satisfied: python-engineio!=5.0.0,<6,>=4 in /home/students/s444341/.local/lib/python3.9/site-packages (from rasa[full]==3.3.*) (4.4.0) Requirement already satisfied: python-dateutil<2.9,>=2.8 in /usr/local/lib/python3.9/dist-packages (from rasa[full]==3.3.*) (2.8.2) Requirement already satisfied: aiohttp!=3.7.4.post0,<3.9,>=3.6 in /home/students/s444341/.local/lib/python3.9/site-packages (from rasa[full]==3.3.*) (3.7.4) Requirement already satisfied: cloudpickle<2.3,>=1.2 in /home/students/s444341/.local/lib/python3.9/site-packages (from rasa[full]==3.3.*) (1.6.0) Requirement already satisfied: networkx<2.7,>=2.4 in /usr/lib/python3/dist-packages (from rasa[full]==3.3.*) (2.5) Requirement already satisfied: redis<5.0,>=3.4 in /home/students/s444341/.local/lib/python3.9/site-packages (from rasa[full]==3.3.*) (3.5.3) Collecting tensorflow<2.9.0,>=2.8.4 Using cached tensorflow-2.8.4-cp39-cp39-manylinux2010_x86_64.whl (498.1 MB) Requirement already satisfied: pytz<2023.0,>=2019.1 in /usr/lib/python3/dist-packages (from rasa[full]==3.3.*) (2021.1) Requirement already satisfied: aio-pika<9.0.0,>=6.7.1 in /home/students/s444341/.local/lib/python3.9/site-packages (from rasa[full]==3.3.*) (8.3.0) Requirement already satisfied: numpy<1.24.0,>=1.19.2 in /home/students/s444341/.local/lib/python3.9/site-packages (from rasa[full]==3.3.*) (1.23.5) Requirement already satisfied: regex<2022.10,>=2020.6 in /home/students/s444341/.local/lib/python3.9/site-packages (from rasa[full]==3.3.*) (2022.4.24) Requirement already satisfied: attrs<22.2,>=19.3 in /home/students/s444341/.local/lib/python3.9/site-packages (from rasa[full]==3.3.*) (21.2.0) Requirement already satisfied: fbmessenger<6.1.0,>=6.0.0 in /home/students/s444341/.local/lib/python3.9/site-packages (from rasa[full]==3.3.*) (6.0.0) Requirement already satisfied: rocketchat_API<1.27.0,>=0.6.31 in /home/students/s444341/.local/lib/python3.9/site-packages (from rasa[full]==3.3.*) (1.25.0) Requirement already satisfied: sanic-routing<0.8.0,>=0.7.2 in /home/students/s444341/.local/lib/python3.9/site-packages (from rasa[full]==3.3.*) (0.7.2) Requirement already satisfied: scikit-learn<1.2,>=0.22 in /usr/lib/python3/dist-packages (from rasa[full]==3.3.*) (0.23.2) Requirement already satisfied: spacy<3.5,>=3.1 in /home/students/s444341/.local/lib/python3.9/site-packages (from rasa[full]==3.3.*) (3.2.5) Requirement already satisfied: jsonpickle<2.3,>=1.3 in /home/students/s444341/.local/lib/python3.9/site-packages (from rasa[full]==3.3.*) (2.0.0) Requirement already satisfied: tensorflow_hub<0.13.0,>=0.12.0 in /home/students/s444341/.local/lib/python3.9/site-packages (from rasa[full]==3.3.*) (0.12.0) Requirement already satisfied: ruamel.yaml<0.18.0,>=0.16.5 in /home/students/s444341/.local/lib/python3.9/site-packages (from rasa[full]==3.3.*) (0.16.13) Requirement already satisfied: transformers<4.14.0,>=4.13.0 in /home/students/s444341/.local/lib/python3.9/site-packages (from rasa[full]==3.3.*) (4.13.0) Requirement already satisfied: sentencepiece[sentencepiece]<0.2.0,>=0.1.96 in /home/students/s444341/.local/lib/python3.9/site-packages (from rasa[full]==3.3.*) (0.1.97) Requirement already satisfied: jieba<0.43,>=0.39 in /home/students/s444341/.local/lib/python3.9/site-packages (from rasa[full]==3.3.*) (0.42.1) Requirement already satisfied: pyyaml>=5.3.1 in /usr/lib/python3/dist-packages (from dask==2022.2.0->rasa[full]==3.3.*) (5.3.1) Requirement already satisfied: partd>=0.3.10 in /home/students/s444341/.local/lib/python3.9/site-packages (from dask==2022.2.0->rasa[full]==3.3.*) (1.3.0) Requirement already satisfied: toolz>=0.8.2 in /home/students/s444341/.local/lib/python3.9/site-packages (from dask==2022.2.0->rasa[full]==3.3.*) (0.12.0) Requirement already satisfied: fsspec>=0.6.0 in /home/students/s444341/.local/lib/python3.9/site-packages (from dask==2022.2.0->rasa[full]==3.3.*) (2023.3.0) Requirement already satisfied: yarl in /home/students/s444341/.local/lib/python3.9/site-packages (from aio-pika<9.0.0,>=6.7.1->rasa[full]==3.3.*) (1.8.2) Requirement already satisfied: aiormq~=6.6.3 in /home/students/s444341/.local/lib/python3.9/site-packages (from aio-pika<9.0.0,>=6.7.1->rasa[full]==3.3.*) (6.6.4) Requirement already satisfied: Babel>=2.8.0 in /usr/local/lib/python3.9/dist-packages (from aiogram<2.20->rasa[full]==3.3.*) (2.10.3) Requirement already satisfied: certifi>=2020.6.20 in /usr/local/lib/python3.9/dist-packages (from aiogram<2.20->rasa[full]==3.3.*) (2022.9.14) Requirement already satisfied: chardet<4.0,>=2.0 in /home/students/s444341/.local/lib/python3.9/site-packages (from aiohttp!=3.7.4.post0,<3.9,>=3.6->rasa[full]==3.3.*) (3.0.4) Requirement already satisfied: async-timeout<4.0,>=3.0 in /home/students/s444341/.local/lib/python3.9/site-packages (from aiohttp!=3.7.4.post0,<3.9,>=3.6->rasa[full]==3.3.*) (3.0.1) Requirement already satisfied: multidict<7.0,>=4.5 in /home/students/s444341/.local/lib/python3.9/site-packages (from aiohttp!=3.7.4.post0,<3.9,>=3.6->rasa[full]==3.3.*) (5.2.0) Requirement already satisfied: six>=1.4.0 in /usr/lib/python3/dist-packages (from apscheduler<3.10,>=3.6->rasa[full]==3.3.*) (1.16.0) Requirement already satisfied: tzlocal~=2.0 in /home/students/s444341/.local/lib/python3.9/site-packages (from apscheduler<3.10,>=3.6->rasa[full]==3.3.*) (2.1) Requirement already satisfied: botocore<1.30.0,>=1.29.101 in /home/students/s444341/.local/lib/python3.9/site-packages (from boto3<2.0,>=1.12->rasa[full]==3.3.*) (1.29.101) Requirement already satisfied: s3transfer<0.7.0,>=0.6.0 in /home/students/s444341/.local/lib/python3.9/site-packages (from boto3<2.0,>=1.12->rasa[full]==3.3.*) (0.6.0) Requirement already satisfied: jmespath<2.0.0,>=0.7.1 in /home/students/s444341/.local/lib/python3.9/site-packages (from boto3<2.0,>=1.12->rasa[full]==3.3.*) (1.0.1) Requirement already satisfied: msgpack>=0.5.2 in /home/students/s444341/.local/lib/python3.9/site-packages (from CacheControl<0.13.0,>=0.12.9->rasa[full]==3.3.*) (1.0.5) Requirement already satisfied: humanfriendly>=9.1 in /home/students/s444341/.local/lib/python3.9/site-packages (from coloredlogs<16,>=10->rasa[full]==3.3.*) (10.0) Requirement already satisfied: rsa<5,>=3.1.4 in /home/students/s444341/.local/lib/python3.9/site-packages (from google-auth<3->rasa[full]==3.3.*) (4.9) Requirement already satisfied: pyasn1-modules>=0.2.1 in /home/students/s444341/.local/lib/python3.9/site-packages (from google-auth<3->rasa[full]==3.3.*) (0.2.8) Requirement already satisfied: cachetools<5.0,>=2.0.0 in /home/students/s444341/.local/lib/python3.9/site-packages (from google-auth<3->rasa[full]==3.3.*) (4.2.4) Requirement already satisfied: pyrsistent!=0.17.0,!=0.17.1,!=0.17.2,>=0.14.0 in /usr/local/lib/python3.9/dist-packages (from jsonschema<4.17,>=3.2->rasa[full]==3.3.*) (0.18.1) Requirement already satisfied: pyparsing>=2.2.1 in /usr/lib/python3/dist-packages (from matplotlib<3.6,>=3.1->rasa[full]==3.3.*) (2.4.7) Requirement already satisfied: cycler>=0.10 in /usr/lib/python3/dist-packages (from matplotlib<3.6,>=3.1->rasa[full]==3.3.*) (0.10.0) Requirement already satisfied: kiwisolver>=1.0.1 in /usr/lib/python3/dist-packages (from matplotlib<3.6,>=3.1->rasa[full]==3.3.*) (1.3.1) Requirement already satisfied: pillow>=6.2.0 in /usr/lib/python3/dist-packages (from matplotlib<3.6,>=3.1->rasa[full]==3.3.*) (8.1.2) Requirement already satisfied: wcwidth in /usr/local/lib/python3.9/dist-packages (from prompt-toolkit<3.0.29,>=3.0->rasa[full]==3.3.*) (0.2.5) Requirement already satisfied: cryptography>=3.4.0 in /usr/local/lib/python3.9/dist-packages (from PyJWT[crypto]<3.0.0,>=2.0.0->rasa[full]==3.3.*) (38.0.1) Requirement already satisfied: docopt>=0.6.2 in /home/students/s444341/.local/lib/python3.9/site-packages (from pykwalify<1.9,>=1.7->rasa[full]==3.3.*) (0.6.2) Requirement already satisfied: dnspython<2.0.0,>=1.16.0 in /home/students/s444341/.local/lib/python3.9/site-packages (from pymongo[srv,tls]<3.11,>=3.8->rasa[full]==3.3.*) (1.16.0) Requirement already satisfied: bidict>=0.21.0 in /home/students/s444341/.local/lib/python3.9/site-packages (from python-socketio<6,>=4.4->rasa[full]==3.3.*) (0.22.1) Requirement already satisfied: fire in /home/students/s444341/.local/lib/python3.9/site-packages (from randomname<0.2.0,>=0.1.5->rasa[full]==3.3.*) (0.5.0) Requirement already satisfied: urllib3<1.27,>=1.21.1 in /usr/local/lib/python3.9/dist-packages (from requests<3.0,>=2.23->rasa[full]==3.3.*) (1.26.12) Requirement already satisfied: idna<4,>=2.5 in /usr/local/lib/python3.9/dist-packages (from requests<3.0,>=2.23->rasa[full]==3.3.*) (3.4) Requirement already satisfied: charset-normalizer<3,>=2 in /usr/local/lib/python3.9/dist-packages (from requests<3.0,>=2.23->rasa[full]==3.3.*) (2.1.1) Requirement already satisfied: ruamel.yaml.clib>=0.1.2 in /usr/local/lib/python3.9/dist-packages (from ruamel.yaml<0.18.0,>=0.16.5->rasa[full]==3.3.*) (0.2.6) Requirement already satisfied: httptools>=0.0.10 in /home/students/s444341/.local/lib/python3.9/site-packages (from sanic<21.13,>=21.12->rasa[full]==3.3.*) (0.5.0) Requirement already satisfied: aiofiles>=0.6.0 in /home/students/s444341/.local/lib/python3.9/site-packages (from sanic<21.13,>=21.12->rasa[full]==3.3.*) (23.1.0) Requirement already satisfied: websockets>=10.0 in /usr/local/lib/python3.9/dist-packages (from sanic<21.13,>=21.12->rasa[full]==3.3.*) (10.3) Requirement already satisfied: uvloop>=0.5.3 in /home/students/s444341/.local/lib/python3.9/site-packages (from sanic<21.13,>=21.12->rasa[full]==3.3.*) (0.17.0) [33mWARNING: sentencepiece 0.1.97 does not provide the extra 'sentencepiece'[0m[33m [0mRequirement already satisfied: tabulate in /home/students/s444341/.local/lib/python3.9/site-packages (from sklearn-crfsuite<0.4,>=0.3->rasa[full]==3.3.*) (0.9.0) Requirement already satisfied: python-crfsuite>=0.8.3 in /home/students/s444341/.local/lib/python3.9/site-packages (from sklearn-crfsuite<0.4,>=0.3->rasa[full]==3.3.*) (0.9.9) Requirement already satisfied: pathy>=0.3.5 in /usr/local/lib/python3.9/dist-packages (from spacy<3.5,>=3.1->rasa[full]==3.3.*) (0.6.2) Requirement already satisfied: pydantic!=1.8,!=1.8.1,<1.9.0,>=1.7.4 in /home/students/s444341/.local/lib/python3.9/site-packages (from spacy<3.5,>=3.1->rasa[full]==3.3.*) (1.8.2) Requirement already satisfied: thinc<8.1.0,>=8.0.12 in /home/students/s444341/.local/lib/python3.9/site-packages (from spacy<3.5,>=3.1->rasa[full]==3.3.*) (8.0.17) Requirement already satisfied: jinja2 in /usr/local/lib/python3.9/dist-packages (from spacy<3.5,>=3.1->rasa[full]==3.3.*) (3.1.2) Requirement already satisfied: typer<0.5.0,>=0.3.0 in /usr/local/lib/python3.9/dist-packages (from spacy<3.5,>=3.1->rasa[full]==3.3.*) (0.4.2) Requirement already satisfied: cymem<2.1.0,>=2.0.2 in /usr/local/lib/python3.9/dist-packages (from spacy<3.5,>=3.1->rasa[full]==3.3.*) (2.0.6) Requirement already satisfied: spacy-legacy<3.1.0,>=3.0.8 in /usr/local/lib/python3.9/dist-packages (from spacy<3.5,>=3.1->rasa[full]==3.3.*) (3.0.10) Requirement already satisfied: wasabi<1.1.0,>=0.8.1 in /usr/local/lib/python3.9/dist-packages (from spacy<3.5,>=3.1->rasa[full]==3.3.*) (0.10.1) Requirement already satisfied: blis<0.8.0,>=0.4.0 in /home/students/s444341/.local/lib/python3.9/site-packages (from spacy<3.5,>=3.1->rasa[full]==3.3.*) (0.7.9) Requirement already satisfied: catalogue<2.1.0,>=2.0.6 in /usr/local/lib/python3.9/dist-packages (from spacy<3.5,>=3.1->rasa[full]==3.3.*) (2.0.8) Requirement already satisfied: spacy-loggers<2.0.0,>=1.0.0 in /usr/local/lib/python3.9/dist-packages (from spacy<3.5,>=3.1->rasa[full]==3.3.*) (1.0.3) Requirement already satisfied: smart-open<7.0.0,>=5.2.1 in /usr/local/lib/python3.9/dist-packages (from spacy<3.5,>=3.1->rasa[full]==3.3.*) (5.2.1) Requirement already satisfied: murmurhash<1.1.0,>=0.28.0 in /usr/local/lib/python3.9/dist-packages (from spacy<3.5,>=3.1->rasa[full]==3.3.*) (1.0.8) Requirement already satisfied: preshed<3.1.0,>=3.0.2 in /usr/local/lib/python3.9/dist-packages (from spacy<3.5,>=3.1->rasa[full]==3.3.*) (3.0.7) Requirement already satisfied: langcodes<4.0.0,>=3.2.0 in /usr/local/lib/python3.9/dist-packages (from spacy<3.5,>=3.1->rasa[full]==3.3.*) (3.3.0) Requirement already satisfied: srsly<3.0.0,>=2.4.1 in /usr/local/lib/python3.9/dist-packages (from spacy<3.5,>=3.1->rasa[full]==3.3.*) (2.4.4) Requirement already satisfied: greenlet!=0.4.17 in /usr/local/lib/python3.9/dist-packages (from SQLAlchemy<1.5.0,>=1.4.0->rasa[full]==3.3.*) (1.1.3) Requirement already satisfied: termcolor>=1.1.0 in /home/students/s444341/.local/lib/python3.9/site-packages (from tensorflow<2.9.0,>=2.8.4->rasa[full]==3.3.*) (2.2.0) Requirement already satisfied: grpcio<2.0,>=1.24.3 in /home/students/s444341/.local/lib/python3.9/site-packages (from tensorflow<2.9.0,>=2.8.4->rasa[full]==3.3.*) (1.53.0) Requirement already satisfied: opt-einsum>=2.3.2 in /home/students/s444341/.local/lib/python3.9/site-packages (from tensorflow<2.9.0,>=2.8.4->rasa[full]==3.3.*) (3.3.0) Collecting tensorflow-estimator<2.9,>=2.8 Using cached tensorflow_estimator-2.8.0-py2.py3-none-any.whl (462 kB) Requirement already satisfied: tensorflow-io-gcs-filesystem>=0.23.1 in /home/students/s444341/.local/lib/python3.9/site-packages (from tensorflow<2.9.0,>=2.8.4->rasa[full]==3.3.*) (0.32.0) Requirement already satisfied: tensorboard<2.9,>=2.8 in /home/students/s444341/.local/lib/python3.9/site-packages (from tensorflow<2.9.0,>=2.8.4->rasa[full]==3.3.*) (2.8.0) Collecting keras<2.9,>=2.8.0rc0 Using cached keras-2.8.0-py2.py3-none-any.whl (1.4 MB) Requirement already satisfied: flatbuffers>=1.12 in /home/students/s444341/.local/lib/python3.9/site-packages (from tensorflow<2.9.0,>=2.8.4->rasa[full]==3.3.*) (2.0.7) Requirement already satisfied: h5py>=2.9.0 in /home/students/s444341/.local/lib/python3.9/site-packages (from tensorflow<2.9.0,>=2.8.4->rasa[full]==3.3.*) (3.8.0) Requirement already satisfied: libclang>=9.0.1 in /home/students/s444341/.local/lib/python3.9/site-packages (from tensorflow<2.9.0,>=2.8.4->rasa[full]==3.3.*) (16.0.0) Requirement already satisfied: keras-preprocessing>=1.1.1 in /home/students/s444341/.local/lib/python3.9/site-packages (from tensorflow<2.9.0,>=2.8.4->rasa[full]==3.3.*) (1.1.2) Requirement already satisfied: astunparse>=1.6.0 in /home/students/s444341/.local/lib/python3.9/site-packages (from tensorflow<2.9.0,>=2.8.4->rasa[full]==3.3.*) (1.6.3) Requirement already satisfied: wrapt>=1.11.0 in /home/students/s444341/.local/lib/python3.9/site-packages (from tensorflow<2.9.0,>=2.8.4->rasa[full]==3.3.*) (1.15.0) Requirement already satisfied: google-pasta>=0.1.1 in /home/students/s444341/.local/lib/python3.9/site-packages (from tensorflow<2.9.0,>=2.8.4->rasa[full]==3.3.*) (0.2.0) Requirement already satisfied: gast>=0.2.1 in /home/students/s444341/.local/lib/python3.9/site-packages (from tensorflow<2.9.0,>=2.8.4->rasa[full]==3.3.*) (0.4.0) Requirement already satisfied: typeguard>=2.7 in /home/students/s444341/.local/lib/python3.9/site-packages (from tensorflow-addons<0.18.0,>=0.17.0->rasa[full]==3.3.*) (2.13.3) Requirement already satisfied: tokenizers<0.11,>=0.10.1 in /home/students/s444341/.local/lib/python3.9/site-packages (from transformers<4.14.0,>=4.13.0->rasa[full]==3.3.*) (0.10.3) Requirement already satisfied: filelock in /usr/lib/python3/dist-packages (from transformers<4.14.0,>=4.13.0->rasa[full]==3.3.*) (3.0.12) Requirement already satisfied: sacremoses in /home/students/s444341/.local/lib/python3.9/site-packages (from transformers<4.14.0,>=4.13.0->rasa[full]==3.3.*) (0.0.53) Requirement already satisfied: huggingface-hub<1.0,>=0.1.0 in /home/students/s444341/.local/lib/python3.9/site-packages (from transformers<4.14.0,>=4.13.0->rasa[full]==3.3.*) (0.13.3) Requirement already satisfied: future in /home/students/s444341/.local/lib/python3.9/site-packages (from webexteamssdk<1.7.0,>=1.1.1->rasa[full]==3.3.*) (0.18.3) Requirement already satisfied: requests-toolbelt in /home/students/s444341/.local/lib/python3.9/site-packages (from webexteamssdk<1.7.0,>=1.1.1->rasa[full]==3.3.*) (0.10.1) Requirement already satisfied: pamqp==3.2.1 in /home/students/s444341/.local/lib/python3.9/site-packages (from aiormq~=6.6.3->aio-pika<9.0.0,>=6.7.1->rasa[full]==3.3.*) (3.2.1) Requirement already satisfied: wheel<1.0,>=0.23.0 in /usr/lib/python3/dist-packages (from astunparse>=1.6.0->tensorflow<2.9.0,>=2.8.4->rasa[full]==3.3.*) (0.34.2) Requirement already satisfied: cffi>=1.12 in /usr/local/lib/python3.9/dist-packages (from cryptography>=3.4.0->PyJWT[crypto]<3.0.0,>=2.0.0->rasa[full]==3.3.*) (1.15.1) Requirement already satisfied: locket in /home/students/s444341/.local/lib/python3.9/site-packages (from partd>=0.3.10->dask==2022.2.0->rasa[full]==3.3.*) (1.0.0) Requirement already satisfied: pyasn1<0.5.0,>=0.4.6 in /home/students/s444341/.local/lib/python3.9/site-packages (from pyasn1-modules>=0.2.1->google-auth<3->rasa[full]==3.3.*) (0.4.8) Requirement already satisfied: tensorboard-data-server<0.7.0,>=0.6.0 in /home/students/s444341/.local/lib/python3.9/site-packages (from tensorboard<2.9,>=2.8->tensorflow<2.9.0,>=2.8.4->rasa[full]==3.3.*) (0.6.1) Requirement already satisfied: markdown>=2.6.8 in /home/students/s444341/.local/lib/python3.9/site-packages (from tensorboard<2.9,>=2.8->tensorflow<2.9.0,>=2.8.4->rasa[full]==3.3.*) (3.4.3) Requirement already satisfied: google-auth-oauthlib<0.5,>=0.4.1 in /home/students/s444341/.local/lib/python3.9/site-packages (from tensorboard<2.9,>=2.8->tensorflow<2.9.0,>=2.8.4->rasa[full]==3.3.*) (0.4.6) Requirement already satisfied: tensorboard-plugin-wit>=1.6.0 in /home/students/s444341/.local/lib/python3.9/site-packages (from tensorboard<2.9,>=2.8->tensorflow<2.9.0,>=2.8.4->rasa[full]==3.3.*) (1.8.1) Requirement already satisfied: werkzeug>=0.11.15 in /home/students/s444341/.local/lib/python3.9/site-packages (from tensorboard<2.9,>=2.8->tensorflow<2.9.0,>=2.8.4->rasa[full]==3.3.*) (2.2.3) Requirement already satisfied: click<9.0.0,>=7.1.1 in /usr/local/lib/python3.9/dist-packages (from typer<0.5.0,>=0.3.0->spacy<3.5,>=3.1->rasa[full]==3.3.*) (8.1.3) Requirement already satisfied: MarkupSafe>=2.0 in /usr/local/lib/python3.9/dist-packages (from jinja2->spacy<3.5,>=3.1->rasa[full]==3.3.*) (2.1.1) Requirement already satisfied: pycparser in /usr/local/lib/python3.9/dist-packages (from cffi>=1.12->cryptography>=3.4.0->PyJWT[crypto]<3.0.0,>=2.0.0->rasa[full]==3.3.*) (2.21) Requirement already satisfied: requests-oauthlib>=0.7.0 in /home/students/s444341/.local/lib/python3.9/site-packages (from google-auth-oauthlib<0.5,>=0.4.1->tensorboard<2.9,>=2.8->tensorflow<2.9.0,>=2.8.4->rasa[full]==3.3.*) (1.3.1) Requirement already satisfied: importlib-metadata>=4.4 in /usr/local/lib/python3.9/dist-packages (from markdown>=2.6.8->tensorboard<2.9,>=2.8->tensorflow<2.9.0,>=2.8.4->rasa[full]==3.3.*) (4.12.0) Requirement already satisfied: zipp>=0.5 in /usr/lib/python3/dist-packages (from importlib-metadata>=4.4->markdown>=2.6.8->tensorboard<2.9,>=2.8->tensorflow<2.9.0,>=2.8.4->rasa[full]==3.3.*) (1.0.0) Requirement already satisfied: oauthlib>=3.0.0 in /usr/local/lib/python3.9/dist-packages (from requests-oauthlib>=0.7.0->google-auth-oauthlib<0.5,>=0.4.1->tensorboard<2.9,>=2.8->tensorflow<2.9.0,>=2.8.4->rasa[full]==3.3.*) (3.2.1) Installing collected packages: tensorflow-estimator, keras, tensorflow Attempting uninstall: tensorflow-estimator Found existing installation: tensorflow-estimator 2.7.0 Uninstalling tensorflow-estimator-2.7.0: Successfully uninstalled tensorflow-estimator-2.7.0 Attempting uninstall: keras Found existing installation: keras 2.7.0 Uninstalling keras-2.7.0: Successfully uninstalled keras-2.7.0 Attempting uninstall: tensorflow Found existing installation: tensorflow 2.7.4 Uninstalling tensorflow-2.7.4: Successfully uninstalled tensorflow-2.7.4 [33m WARNING: The scripts estimator_ckpt_converter, import_pb_to_tensorboard, saved_model_cli, tensorboard, tf_upgrade_v2, tflite_convert, toco and toco_from_protos are installed in '/home/students/s444341/.local/bin' which is not on PATH. Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.[0m[33m [0mSuccessfully installed keras-2.8.0 tensorflow-2.8.4 tensorflow-estimator-2.8.0 --- Logging error --- Traceback (most recent call last): File "/usr/local/lib/python3.9/dist-packages/pip/_internal/utils/logging.py", line 177, in emit self.console.print(renderable, overflow="ignore", crop=False, style=style) File "/usr/local/lib/python3.9/dist-packages/pip/_vendor/rich/console.py", line 1673, in print extend(render(renderable, render_options)) File "/usr/local/lib/python3.9/dist-packages/pip/_vendor/rich/console.py", line 1305, in render for render_output in iter_render: File "/usr/local/lib/python3.9/dist-packages/pip/_internal/utils/logging.py", line 134, in __rich_console__ for line in lines: File "/usr/local/lib/python3.9/dist-packages/pip/_vendor/rich/segment.py", line 249, in split_lines for segment in segments: File "/usr/local/lib/python3.9/dist-packages/pip/_vendor/rich/console.py", line 1283, in render renderable = rich_cast(renderable) File "/usr/local/lib/python3.9/dist-packages/pip/_vendor/rich/protocol.py", line 36, in rich_cast renderable = cast_method() File "/usr/local/lib/python3.9/dist-packages/pip/_internal/self_outdated_check.py", line 130, in __rich__ pip_cmd = get_best_invocation_for_this_pip() File "/usr/local/lib/python3.9/dist-packages/pip/_internal/utils/entrypoints.py", line 58, in get_best_invocation_for_this_pip if found_executable and os.path.samefile( File "/usr/lib/python3.9/genericpath.py", line 101, in samefile s2 = os.stat(f2) FileNotFoundError: [Errno 2] No such file or directory: '/usr/bin/pip3.9' Call stack: File "/usr/lib/python3.9/runpy.py", line 197, in _run_module_as_main return _run_code(code, main_globals, None, File "/usr/lib/python3.9/runpy.py", line 87, in _run_code exec(code, run_globals) File "/usr/local/lib/python3.9/dist-packages/pip/__main__.py", line 31, in <module> sys.exit(_main()) File "/usr/local/lib/python3.9/dist-packages/pip/_internal/cli/main.py", line 70, in main return command.main(cmd_args) File "/usr/local/lib/python3.9/dist-packages/pip/_internal/cli/base_command.py", line 101, in main return self._main(args) File "/usr/local/lib/python3.9/dist-packages/pip/_internal/cli/base_command.py", line 223, in _main self.handle_pip_version_check(options) File "/usr/local/lib/python3.9/dist-packages/pip/_internal/cli/req_command.py", line 190, in handle_pip_version_check pip_self_version_check(session, options) File "/usr/local/lib/python3.9/dist-packages/pip/_internal/self_outdated_check.py", line 236, in pip_self_version_check logger.warning("[present-rich] %s", upgrade_prompt) File "/usr/lib/python3.9/logging/__init__.py", line 1454, in warning self._log(WARNING, msg, args, **kwargs) File "/usr/lib/python3.9/logging/__init__.py", line 1585, in _log self.handle(record) File "/usr/lib/python3.9/logging/__init__.py", line 1595, in handle self.callHandlers(record) File "/usr/lib/python3.9/logging/__init__.py", line 1657, in callHandlers hdlr.handle(record) File "/usr/lib/python3.9/logging/__init__.py", line 948, in handle self.emit(record) File "/usr/local/lib/python3.9/dist-packages/pip/_internal/utils/logging.py", line 179, in emit self.handleError(record) Message: '[present-rich] %s' Arguments: (UpgradePrompt(old='22.2.2', new='23.0.1'),) Note: you may need to restart the kernel to use updated packages.
Importujemy ją.
import rasa
rasa.__version__
'3.3.6'
from rasa.cli.scaffold import create_initial_project
project_dir = "Projekt_AE"
create_initial_project(project_dir)
Przejdź do katalogu.
Definiujemy zmienne dla funckji train, którą będziemy trenować model.
config = project_dir + "/config.yml"
training_files = project_dir + "/data/"
domain = project_dir + "/domain.yml"
output = project_dir + "/models/"
pip install pyspark==2.4.*
Defaulting to user installation because normal site-packages is not writeable Requirement already satisfied: pyspark==2.4.* in /home/students/s444341/.local/lib/python3.9/site-packages (2.4.8) Requirement already satisfied: py4j==0.10.7 in /home/students/s444341/.local/lib/python3.9/site-packages (from pyspark==2.4.*) (0.10.7) --- Logging error --- Traceback (most recent call last): File "/usr/local/lib/python3.9/dist-packages/pip/_internal/utils/logging.py", line 177, in emit self.console.print(renderable, overflow="ignore", crop=False, style=style) File "/usr/local/lib/python3.9/dist-packages/pip/_vendor/rich/console.py", line 1673, in print extend(render(renderable, render_options)) File "/usr/local/lib/python3.9/dist-packages/pip/_vendor/rich/console.py", line 1305, in render for render_output in iter_render: File "/usr/local/lib/python3.9/dist-packages/pip/_internal/utils/logging.py", line 134, in __rich_console__ for line in lines: File "/usr/local/lib/python3.9/dist-packages/pip/_vendor/rich/segment.py", line 249, in split_lines for segment in segments: File "/usr/local/lib/python3.9/dist-packages/pip/_vendor/rich/console.py", line 1283, in render renderable = rich_cast(renderable) File "/usr/local/lib/python3.9/dist-packages/pip/_vendor/rich/protocol.py", line 36, in rich_cast renderable = cast_method() File "/usr/local/lib/python3.9/dist-packages/pip/_internal/self_outdated_check.py", line 130, in __rich__ pip_cmd = get_best_invocation_for_this_pip() File "/usr/local/lib/python3.9/dist-packages/pip/_internal/utils/entrypoints.py", line 58, in get_best_invocation_for_this_pip if found_executable and os.path.samefile( File "/usr/lib/python3.9/genericpath.py", line 101, in samefile s2 = os.stat(f2) FileNotFoundError: [Errno 2] No such file or directory: '/usr/bin/pip3.9' Call stack: File "/usr/lib/python3.9/runpy.py", line 197, in _run_module_as_main return _run_code(code, main_globals, None, File "/usr/lib/python3.9/runpy.py", line 87, in _run_code exec(code, run_globals) File "/usr/local/lib/python3.9/dist-packages/pip/__main__.py", line 31, in <module> sys.exit(_main()) File "/usr/local/lib/python3.9/dist-packages/pip/_internal/cli/main.py", line 70, in main return command.main(cmd_args) File "/usr/local/lib/python3.9/dist-packages/pip/_internal/cli/base_command.py", line 101, in main return self._main(args) File "/usr/local/lib/python3.9/dist-packages/pip/_internal/cli/base_command.py", line 223, in _main self.handle_pip_version_check(options) File "/usr/local/lib/python3.9/dist-packages/pip/_internal/cli/req_command.py", line 190, in handle_pip_version_check pip_self_version_check(session, options) File "/usr/local/lib/python3.9/dist-packages/pip/_internal/self_outdated_check.py", line 236, in pip_self_version_check logger.warning("[present-rich] %s", upgrade_prompt) File "/usr/lib/python3.9/logging/__init__.py", line 1454, in warning self._log(WARNING, msg, args, **kwargs) File "/usr/lib/python3.9/logging/__init__.py", line 1585, in _log self.handle(record) File "/usr/lib/python3.9/logging/__init__.py", line 1595, in handle self.callHandlers(record) File "/usr/lib/python3.9/logging/__init__.py", line 1657, in callHandlers hdlr.handle(record) File "/usr/lib/python3.9/logging/__init__.py", line 948, in handle self.emit(record) File "/usr/local/lib/python3.9/dist-packages/pip/_internal/utils/logging.py", line 179, in emit self.handleError(record) Message: '[present-rich] %s' Arguments: (UpgradePrompt(old='22.2.2', new='23.0.1'),) Note: you may need to restart the kernel to use updated packages.
Nareszcie, uczymy model:
model = rasa.train(domain, config, [training_files], output)
[94mThe configuration for policies and pipeline was chosen automatically. It was written into the config file at 'Projekt_AE/config.yml'.[0m
Processed story blocks: 100%|██████████| 2/2 [00:00<00:00, 466.84it/s, # trackers=1] Processed story blocks: 100%|██████████| 2/2 [00:00<00:00, 1114.47it/s, # trackers=1] Processed story blocks: 100%|██████████| 2/2 [00:00<00:00, 812.85it/s, # trackers=2] Processed story blocks: 100%|██████████| 2/2 [00:00<00:00, 454.27it/s, # trackers=3] Processed rules: 100%|██████████| 2/2 [00:00<00:00, 1263.73it/s, # trackers=1] Processed trackers: 100%|██████████| 1/1 [00:00<00:00, 212.46it/s, # action=5] Processed actions: 5it [00:00, 1242.76it/s, # examples=5] Processed trackers: 100%|██████████| 1/1 [00:00<00:00, 428.03it/s, # action=3] Processed actions: 3it [00:00, 2160.16it/s, # examples=2] Processed trackers: 100%|██████████| 1/1 [00:00<00:00, 209.80it/s, # action=5] Processed trackers: 100%|██████████| 1/1 [00:00<00:00, 813.01it/s] Processed trackers: 100%|██████████| 2/2 [00:00<00:00, 1010.43it/s] Processed trackers: 100%|██████████| 4/4 [00:00<00:00, 353.71it/s, # action=9] Epochs: 100%|██████████| 100/100 [00:13<00:00, 7.39it/s, t_loss=0.181, loss=0.0286, acc=1] Processed trackers: 100%|██████████| 4/4 [00:00<00:00, 1050.81it/s, # intent=5] Epochs: 100%|██████████| 100/100 [00:13<00:00, 7.37it/s, t_loss=0.124, loss=0.00663, acc=1] /home/students/s444341/.local/lib/python3.9/site-packages/rasa/core/policies/unexpected_intent_policy.py:839: DeprecationWarning: the `interpolation=` argument to quantile was renamed to `method=`, which has additional options. Users of the modes 'nearest', 'lower', 'higher', or 'midpoint' are encouraged to review the method they used. (Deprecated NumPy 1.22) quantile_values = np.quantile( # type: ignore[call-overload]
[92mYour Rasa model is trained and saved at 'Projekt_AE/models/20230329-182617-upbeat-aggregate.tar.gz'.[0m
Wypisz ścieżkę do modelu:
print(model)
TrainingResult(model='Projekt_AE/models/20230329-182617-upbeat-aggregate.tar.gz', code=0, dry_run_results=None)
Przeklej ścieżkę i porozmawiaj ze swoim botem:
from rasa.jupyter import chat
from rasa.core.utils import read_endpoints_from_path
# do ścieżki modelu wklej ścieżkę, która została zwrócona w poprzednim kroku
model_path = model.model
endpoints = read_endpoints_from_path(project_dir + "/endpoints.yml")
chat(model_path, endpoints)
WARNING:tensorflow:5 out of the last 104 calls to <function Model.make_train_function.<locals>.train_function at 0x7fb4ff636b80> triggered tf.function retracing. Tracing is expensive and the excessive number of tracings could be due to (1) creating @tf.function repeatedly in a loop, (2) passing tensors with different shapes, (3) passing Python objects instead of tensors. For (1), please define your @tf.function outside of the loop. For (2), @tf.function has experimental_relax_shapes=True option that relaxes argument shapes that can avoid unnecessary retracing. For (3), please refer to https://www.tensorflow.org/guide/function#controlling_retracing and https://www.tensorflow.org/api_docs/python/tf/function for more details. WARNING:tensorflow:6 out of the last 105 calls to <function Model.make_train_function.<locals>.train_function at 0x7fb4fe085820> triggered tf.function retracing. Tracing is expensive and the excessive number of tracings could be due to (1) creating @tf.function repeatedly in a loop, (2) passing tensors with different shapes, (3) passing Python objects instead of tensors. For (1), please define your @tf.function outside of the loop. For (2), @tf.function has experimental_relax_shapes=True option that relaxes argument shapes that can avoid unnecessary retracing. For (3), please refer to https://www.tensorflow.org/guide/function#controlling_retracing and https://www.tensorflow.org/api_docs/python/tf/function for more details. Your bot is ready to talk! Type your messages here or send '/stop'. Hi [92mHey! How are you?[0m Good, are you tired? [92mI'm very tired, how are you?[0m /stop
Możliwości naszego Chatbota są mocno ograniczone - potrafi się przywitać i pożegnać oraz rozpoznać podstawowe emocje. Spróbujmy nauczyć go czegoś nowego. Wejdź na https://github.com/RasaHQ/NLU-training-data/blob/main/mood/nlu.yml
Skopiuj plik nlu.yml dla kategorii "mood". Przekopiuj jego treść do pliku nlu.yml w swoim folderze projektu (folder data).
Następnie dodaj (ręcznie) odpowiednie stories w pliku stories.yml.
Przejdź do pliku domain i dodaj nowe elementy, np. "mood_nervous" oraz "utter_foo_bar".
Wejdź do folderu projektu i usuń stworzony model.
Ponownie naucz swojego bota i z nim porozmawiaj. Zapytaj o nowo dodane emocje. (Konieczny może być restart kernela)
Pliki z własnymi, prostymi zasadami są umieszczone na repozytorium
https://git.wmi.amu.edu.pl/s444341/Sztuczna_empatia
Poniżej zamieszczona jest funkcja, która zbiera wszystkie pliki yml z nlu, stories i rules, oraz wrzuca je do dwóch tymczasowych katalogów.
nlu_data_directory = f'{project_dir}/data/nlu.yml'
stories_directory = f'{project_dir}/data/stories.yml'
print(stories_directory, nlu_data_directory)
Projekt_AE/data/stories.yml Projekt_AE/data/nlu.yml
Aby przetestować model, wywułaj funkcję call:
rasa.test(model_path, stories_directory, nlu_data_directory)
Błędy NLU są eksportowane do errors.json.
import os
if os.path.isfile("errors.json"):
print("Bledy NLU:")
print(open("errors.json").read())
else:
print("Brak bledow NLU.")
if os.path.isdir("results"):
print("\n")
print("Core Errors:")
print(open("results/failed_test_stories.yml").read())
Brak bledow NLU.
Źródła:
[1] https://rasa.com/docs/rasa/jupyter-notebooks/
[2] Yalçın, Ö. (2020). Empathy framework for embodied conversational agents. Cognitive Systems Research, 59, 123-132.
[3] https://www.ibm.com/cloud/learn/natural-language-processing?mhsrc=ibmsearch_a&mhq=natural%20language
[4] https://sloboda-studio.com/blog/how-to-use-nlp-for-building-a-chatbot/
[5] Grosuleac, A., Budulan, S., & Rebedea, T. (2020). Seeking an Empathy-abled Conversational Agent. RoCHI.
[6] Ӧzge Nilay Yalcin, Steve DiPaola, 2018, A computational model of empathy for interactive agents, Biologically Inspired Cognitive Architectures, Volume 26, pp. 20-25, DOI: doi.org/10.1016/j.bica.2018.07.010.
[7] Fung, P., Bertero, D., Xu, P., Park, J.H., Wu, C., & Madotto, A. (2018). Empathetic Dialog Systems.
[8] Wei, W., Liu, J., Mao, X., Guo, G., Zhu, F., Zhou, P., & Hu, Y. (2019). Emotion-aware Chat Machine: Automatic Emotional Response Generation for Human-like Emotional Interaction. Proceedings of the 28th ACM International Conference on Information and Knowledge Management.
[9] Li, Q., Chen, H., Ren, Z., Chen, Z., Tu, Z., & Ma, J. (2020). EmpDG: Multi-resolution Interactive Empathetic Dialogue Generation. COLING.
[10] Rashkin, H., Smith, E.M., Li, M., & Boureau, Y. (2019). Towards Empathetic Open-domain Conversation Models: A New Benchmark and Dataset. ACL.
[11] Ghandeharioun, A., Shen, J.H., Jaques, N., Ferguson, C., Jones, N.J., Lapedriza, À., & Picard, R.W. (2019). Approximating Interactive Human Evaluation with Self-Play for Open-Domain Dialog Systems. NeurIPS.
[12] Ma, Y., Nguyen, K.L., Xing, F.Z., & Cambria, E. (2020). A survey on empathetic dialogue systems. Inf. Fusion, 64, 50-70.
[13] Paiva, A., Leite, I., Boukricha, H., & Wachsmuth, I. (2017). Empathy in Virtual Agents and Robots. ACM Transactions on Interactive Intelligent Systems (TiiS), 7, 1 - 40.
[14] https://forum.rasa.com/t/how-to-run-custom-action-in-jupyter-notebook/17109/5
[16] https://www.ultimate.ai/blog/ai-automation/how-nlp-text-based-chatbots-work