Compare commits
2 Commits
4620e53229
...
a928c925fc
Author | SHA1 | Date | |
---|---|---|---|
a928c925fc | |||
809079cd56 |
@ -40,7 +40,14 @@ Agent powinien wykazywać elastyczność, adaptując się do potrzeb klienta, np
|
||||
|
||||
- Python 3.10.12
|
||||
- Instalacja dependencies `pip3 install -r requirements.txt`
|
||||
- Centralna część systemu - uruchamiamy `python3 src/main.py`
|
||||
- Centralna część systemu - uruchamiamy `python3 src/main.py` - wymagane są wyuczone modele (patrz niżej)
|
||||
- NLU:
|
||||
- uczenie modeli od zera `python3 nlu_train.py`
|
||||
- Ewaluacja `python3 evaluate.py`
|
||||
|
||||
# Gotowe modele NLU
|
||||
|
||||
- [frame-model-prod](https://1drv.ms/f/s!Ar75ftQiNIxxhcgPS1EOLu0zC_WWzg?e=tJRqbB)
|
||||
- [slot-model-prod](https://1drv.ms/f/s!Ar75ftQiNIxxhcgb2X6pFioRxXHVew?e=ZC6LFI)
|
||||
|
||||
Nazwa folderów jest istotna - muszą byc odpowiednio `frame-model-prod` i `slot-model-prod` oraz znajdować się w głównym katalogu repozytorium.
|
@ -5,7 +5,7 @@ from service.natural_language_generation import NaturalLanguageGeneration, parse
|
||||
from service.templates import templates
|
||||
|
||||
# initialize classes
|
||||
nlu = NaturalLanguageUnderstanding() # NLU
|
||||
nlu = NaturalLanguageUnderstanding(use_mocks=False) # NLU
|
||||
monitor = DialogStateMonitor() # DSM
|
||||
dialog_policy = DialogPolicy() # DP
|
||||
language_generation = NaturalLanguageGeneration(templates) # NLG
|
||||
|
@ -5,6 +5,7 @@ import json
|
||||
|
||||
def normalize(value):
|
||||
value = value.lower()
|
||||
# TODO: pomyslec nad odmianą slów
|
||||
return ' '.join(value.split())
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user