From a2e2dd4e233236e18ef9a5cf311386a952f0a317 Mon Sep 17 00:00:00 2001 From: s464786 Date: Mon, 3 Jun 2024 22:36:02 +0200 Subject: [PATCH] learning --- MachineLearningNLG.py | 31 +++++++++++++ Main.py | 8 +--- train_nlg.py | 69 +++++++++++++++++++++++++++++ translate_data.py | 28 ++++++++++++ translated_data/dialog-01-02-01.tsv | 26 +++++++++++ translated_data/dialog-01-02-02.tsv | 13 ++++++ translated_data/dialog-01-04-01.tsv | 26 +++++++++++ translated_data/dialog-01-06-01.tsv | 13 ++++++ translated_data/dialog-01-08-01.tsv | 20 +++++++++ translated_data/dialog-01-12-01.tsv | 23 ++++++++++ translated_data/dialog-02-01-01.tsv | 11 +++++ translated_data/dialog-02-03-01.tsv | 13 ++++++ translated_data/dialog-02-03-02.tsv | 9 ++++ translated_data/dialog-02-05-01.tsv | 15 +++++++ translated_data/dialog-02-07-01.tsv | 21 +++++++++ translated_data/dialog-02-09-01.tsv | 10 +++++ translated_data/dialog-02-11-01.tsv | 10 +++++ translated_data/dialog-02-13-01.tsv | 13 ++++++ translated_data/dialog-03-02-01.tsv | 20 +++++++++ translated_data/dialog-03-04-01.tsv | 21 +++++++++ translated_data/dialog-03-06-01.tsv | 15 +++++++ translated_data/dialog-03-08-01.tsv | 17 +++++++ translated_data/dialog-03-12-01.tsv | 32 +++++++++++++ 23 files changed, 458 insertions(+), 6 deletions(-) create mode 100644 MachineLearningNLG.py create mode 100644 train_nlg.py create mode 100644 translate_data.py create mode 100644 translated_data/dialog-01-02-01.tsv create mode 100644 translated_data/dialog-01-02-02.tsv create mode 100644 translated_data/dialog-01-04-01.tsv create mode 100644 translated_data/dialog-01-06-01.tsv create mode 100644 translated_data/dialog-01-08-01.tsv create mode 100644 translated_data/dialog-01-12-01.tsv create mode 100644 translated_data/dialog-02-01-01.tsv create mode 100644 translated_data/dialog-02-03-01.tsv create mode 100644 translated_data/dialog-02-03-02.tsv create mode 100644 translated_data/dialog-02-05-01.tsv create mode 100644 translated_data/dialog-02-07-01.tsv create mode 100644 translated_data/dialog-02-09-01.tsv create mode 100644 translated_data/dialog-02-11-01.tsv create mode 100644 translated_data/dialog-02-13-01.tsv create mode 100644 translated_data/dialog-03-02-01.tsv create mode 100644 translated_data/dialog-03-04-01.tsv create mode 100644 translated_data/dialog-03-06-01.tsv create mode 100644 translated_data/dialog-03-08-01.tsv create mode 100644 translated_data/dialog-03-12-01.tsv diff --git a/MachineLearningNLG.py b/MachineLearningNLG.py new file mode 100644 index 0000000..4fd6090 --- /dev/null +++ b/MachineLearningNLG.py @@ -0,0 +1,31 @@ +from transformers import AutoModelForSeq2SeqLM, AutoTokenizer, pipeline +import requests + +class MachineLearningNLG: + def __init__(self): + self.model_name = "./nlg_model" # Ścieżka do wytrenowanego modelu + self.tokenizer = AutoTokenizer.from_pretrained(self.model_name) + self.model = AutoModelForSeq2SeqLM.from_pretrained(self.model_name) + self.generator = pipeline('text2text-generation', model=self.model, tokenizer=self.tokenizer) + + def translate_text(self, text, target_language='pl'): + url = 'https://translate.googleapis.com/translate_a/single?client=gtx&sl=auto&tl={}&dt=t&q={}'.format(target_language, text) + response = requests.get(url) + if response.status_code == 200: + translated_text = response.json()[0][0][0] + return translated_text + else: + return text # Zwracamy oryginalny tekst w razie problemów z tłumaczeniem + + def nlg(self, system_act): + input_text = f"generate text: {system_act}" + result = self.generator(input_text) + response = result[0]['generated_text'] + translated_response = self.translate_text(response, target_language='pl') + return translated_response + + +if __name__ == "__main__": + nlg = MachineLearningNLG() + system_act = "inform(date.from=15.07, date.to=22.07)" + print(nlg.nlg(system_act)) diff --git a/Main.py b/Main.py index 4717208..077c2b0 100644 --- a/Main.py +++ b/Main.py @@ -2,19 +2,15 @@ from NaturalLanguageAnalyzer import NaturalLanguageAnalyzer from DialoguePolicy import DialoguePolicy from DialogueStateTracker import DialogueStateTracker from convlab.dialog_agent import PipelineAgent -from convlab.nlg.template.multiwoz import TemplateNLG - - +from MachineLearningNLG import MachineLearningNLG # Importujemy nowy komponent NLG if __name__ == "__main__": text = "chciałbym zarezerwować drogi hotel z parkingiem 1 stycznia w Warszawie w centrum" nlu = NaturalLanguageAnalyzer() dst = DialogueStateTracker() policy = DialoguePolicy() - nlg = TemplateNLG(is_user=False) + nlg = MachineLearningNLG() # Używamy nowego komponentu NLG agent = PipelineAgent(nlu=nlu, dst=dst, policy=policy, nlg=nlg, name='sys') response = agent.response(text) print(response) - - diff --git a/train_nlg.py b/train_nlg.py new file mode 100644 index 0000000..00d2269 --- /dev/null +++ b/train_nlg.py @@ -0,0 +1,69 @@ +import os +import pandas as pd +from datasets import Dataset +from transformers import AutoTokenizer, AutoModelForSeq2SeqLM, DataCollatorForSeq2Seq, Seq2SeqTrainer, Seq2SeqTrainingArguments + +translated_data_directory = 'translated_data' + +# Łączymy wszystkie przetłumaczone pliki TSV w jeden zbiór danych +dfs = [] +for file_name in os.listdir(translated_data_directory): + if file_name.endswith('.tsv'): + file_path = os.path.join(translated_data_directory, file_name) + df = pd.read_csv(file_path, sep='\t') + dfs.append(df) +combined_df = pd.concat(dfs, ignore_index=True) + +# Przygotowanie zbioru danych do trenowania +dataset = Dataset.from_pandas(combined_df) + +# Wczytujemy model i tokenizer +model_name = "google/flan-t5-small" +tokenizer = AutoTokenizer.from_pretrained(model_name) + +# Funkcja do tokenizacji danych +def tokenize_samples(samples): + inputs = [f"generate text: {act}" for act in samples["act"]] + tokenized_inputs = tokenizer(inputs, max_length=128, padding="max_length", truncation=True) + labels = tokenizer(samples["value_en"], max_length=128, padding="max_length", truncation=True) + labels["input_ids"] = [ + [(token_id if token_id != tokenizer.pad_token_id else -100) for token_id in label] + for label in labels["input_ids"] + ] + tokenized_inputs["labels"] = labels["input_ids"] + return tokenized_inputs + +# Tokenizujemy dane +tokenized_dataset = dataset.map(tokenize_samples, batched=True) + +# Wczytujemy model +model = AutoModelForSeq2SeqLM.from_pretrained(model_name) + +# Konfiguracja DataCollator +data_collator = DataCollatorForSeq2Seq(tokenizer, model=model, label_pad_token_id=-100, pad_to_multiple_of=8) + +# Konfiguracja treningu +training_args = Seq2SeqTrainingArguments( + output_dir="./nlg_model", + per_device_train_batch_size=8, + per_device_eval_batch_size=16, + predict_with_generate=True, + learning_rate=5e-5, + num_train_epochs=3, + evaluation_strategy="epoch", + save_strategy="epoch", + save_total_limit=1, + load_best_model_at_end=True, +) + +# Inicjalizacja trenera +trainer = Seq2SeqTrainer( + model=model, + args=training_args, + data_collator=data_collator, + train_dataset=tokenized_dataset, + eval_dataset=tokenized_dataset, +) + +# Trening modelu +trainer.train() diff --git a/translate_data.py b/translate_data.py new file mode 100644 index 0000000..11cb678 --- /dev/null +++ b/translate_data.py @@ -0,0 +1,28 @@ +import os +import pandas as pd +import requests + +def translate_text(text, target_language='en'): + url = 'https://translate.googleapis.com/translate_a/single?client=gtx&sl=auto&tl={}&dt=t&q={}'.format(target_language, text) + response = requests.get(url) + if response.status_code == 200: + translated_text = response.json()[0][0][0] + return translated_text + else: + return text # Zwracamy oryginalny tekst w razie problemów z tłumaczeniem + +data_directory = 'data' +translated_data_directory = 'translated_data' +os.makedirs(translated_data_directory, exist_ok=True) + +for file_name in os.listdir(data_directory): + if file_name.endswith('.tsv'): + file_path = os.path.join(data_directory, file_name) + df = pd.read_csv(file_path, sep='\t') + + # Tłumaczymy kolumnę 'value' na angielski + df['value_en'] = df['value'].apply(lambda x: translate_text(x, 'en')) + + # Zapisujemy przetłumaczone dane do nowego pliku TSV + translated_file_path = os.path.join(translated_data_directory, file_name) + df.to_csv(translated_file_path, index=False, sep='\t') diff --git a/translated_data/dialog-01-02-01.tsv b/translated_data/dialog-01-02-01.tsv new file mode 100644 index 0000000..f8a78e7 --- /dev/null +++ b/translated_data/dialog-01-02-01.tsv @@ -0,0 +1,26 @@ +role value act value_en +system Witaj, jestem systemem wspomagającym rezerwacje pokoi hotelowych, w czym mogę ci pomóc? welcomemsg() Hello, I am a hotel room reservation system, how can I help you? +user Chciałbym zarezerwować pokój dla całej rodziny nad Bałtykiem z widokiem na morze. inform(place='baltic',extra='seaside',rooms=1) I would like to book a room for the whole family on the Baltic Sea with a sea view. +system Ilu osobowa jest to rodzina? request(people) How many people is this family? +user 2 dorosłych i 2 dzieci inform(people.adult=2,people.kids=2) 2 adults and 2 children +system Czy następujący podział łóżek odpowiada Panu/Pani? - Łóżko 2-osobowe -> 1 | Łóżko 1-osobowe -> 2 confirm-domain(beds) Does the following bed division suit you? +user Tak, pasuje mi affirm() Yes, it fits me +system W jakim terminie interesuje Pana/Panią rezerwacja? request(date.from,date.to) What date are you interested in booking? +user 15-22 lipca inform(date.from=15.07,date.to=22.07) July 15-22 +system Jaki jest wiek dzieci? request(people.kids.ages) What are the ages of the children? +user 4 i 9 lat inform(people.kids.ages=[4,9]) 4 and 9 years old +system Podczas poszukiwań kierować się ceną, liczbą gwiazdek hotelu czy ocenami obiektu? request(sort) When searching, should you be guided by the price, the number of hotel stars or the facility's ratings? +user Przede wszystkim ocenami. Chciałbym jednak, żeby nie było to również za drogie miejsce. inform(sort=['reviews','price']) First of all, ratings. +system W podanym terminie udało mi się znaleźć Willa Słoneczna - Magdalena i Michał Żelewscy, jest ona wysoko oceniana, oraz najtańsza spośród wysoko ocenianych. Koszt rezerwacji to 1890 PLN, niestety nie jest oferowane śniadanie "offer(hotel=""Willa Słoneczna - Magdalena i Michał Żelewscy"")&inform(cost,reviews)" On the given date, I managed to find Willa Słoneczna - Magdalena and Michał Żelewscy, it is highly rated and the cheapest among the highly rated ones. +system Czy dokonać rezerwacji? request(reserve) Should I make a reservation? +user Czy na miejscu jest restauracja oferująca obiady? reqmore(extra.restaurant)&inform(extra.restaurant=true) Is there a restaurant on site that serves dinner? +system Niestety nie posiadam takich informacji o obiekcie canthelp() Unfortunately, I do not have such information about the facility +user Podana cena jest za cały pobyt za wszystkie osoby? reqmore(price) Is the price quoted for the entire stay for all people? +system Podawane ceny dotyczą ostatecznej kwoty do zapłaty inform(price) Prices quoted are for the final amount payable +user W takim razie proszę zarezerwować. affirm() Then please make a reservation. +system Czy będzie potrzebował Pan faktury vat? request(fv24) Will you need a VAT invoice? +user Nie inform(fv24=false) NO +system Dobrze, oto Pana kod rezerwacji m45n0-f35t-wino, płatności należy dokonać pod tym linkiem: https://fake-blik.cn/pay/?transaction_id=21372115 affirm() Okay, here is your reservation code m45n0-f35t-wino, payment should be made via this link: https://fake-blik.cn/pay/?transaction_id=21372115 +system Czy mogę w czymś jeszcze pomóc? reqmore() Can I help you with something else? +user To wszystko. Dziękuję neagte() That's all. +system Dziękuje za skorzystanie z systemu, miłego wyjazdu! bye() Thank you for using the system, have a nice trip! diff --git a/translated_data/dialog-01-02-02.tsv b/translated_data/dialog-01-02-02.tsv new file mode 100644 index 0000000..f25eac7 --- /dev/null +++ b/translated_data/dialog-01-02-02.tsv @@ -0,0 +1,13 @@ +role value act value_en +system Witaj, jestem systemem wspomagającym rezerwacje pokoi hotelowych, w czym mogę ci pomóc? welcomemsg() Hello, I am a hotel room reservation system, how can I help you? +user Chciałbym zarezerwować nocleg z 27 na 28 marca w Warszawie dla jednej osoby. inform(place='Warsaw', date.from=27.03, date.to=28.03, people=1) I would like to book accommodation from March 27 to 28 in Warsaw for one person. +system Czy interesują Pana/Panią jakieś szczególne udogodnienia w pokoju? request(extra) Are you interested in any particular amenities in the room? +user Zależy mi tylko na tym, żeby był czajnik i kawa inform(extra.coffee=true,extra.kettle=true) All I care about is that there is a kettle and coffee +system Podczas poszukiwań kierować się ocenami, ceną czy ilością gwiazdek? request(sort) When searching, should you be guided by ratings, price or number of stars? +user Proszę kierować się ceną inform(sort=['price']) Please pay attention to the price +system W podanym terminie udało mi się znaleźć pokój w Ivory House (Marymont-Ruda). Cena rezerwacji wynosi 128 zł. Dokonać rezerwacji? "offer(hotel=""Ivory House (Marymont-Ruda)"")&inform(cost)" On the given date, I managed to find a room at Ivory House (Marymont-Ruda). +user Wygląda zachęcająco. Proszę rezerwować. affirm() It looks tempting. +system Czy potrzebuje Pan/Pani faktury vat? request(fv24) Do you need a VAT invoice? +user nie inform(fv24=false) NO +system Dobrze, oto Pana kod rezerwacji wy6l4d4-z4ch3c4j4c0-b4rdz0, płatności należy dokonać pod tym linkiem: https://fake-blik.cn/pay/?transaction_id=10310314 affirm() Okay, here is your reservation code wy6l4d4-z4ch3c4j4c0-b4rdz0, payment should be made via this link: https://fake-blik.cn/pay/?transaction_id=10310314 +system Czy mogę w czymś jeszcze Pani/Panu pomóc? more_help() Is there anything else I can help you with? diff --git a/translated_data/dialog-01-04-01.tsv b/translated_data/dialog-01-04-01.tsv new file mode 100644 index 0000000..2374739 --- /dev/null +++ b/translated_data/dialog-01-04-01.tsv @@ -0,0 +1,26 @@ +role value act value_en +system Witaj, jestem systemem wspomagającym rezerwacje pokoi hotelowych, w czym mogę ci pomóc? welcomemsg() Hello, I am a hotel room reservation system, how can I help you? +user Chciałbym zarezerwować pokój z widokiem na wieże eifla, z balkonem oraz śniadaniami do łóżka inform(place='Eiffel tower', extra.terrace=true, extra.breakfast=true) I would like to book a room with a view of the Eiffel Tower, with a balcony and breakfast in bed +system W jakim terminie interesuje Pana/Panią rezerwacja? request(date.from,date.to) What date are you interested in booking? +user Dzisiaj wieczór, czy jest możliwośc rezerwacji pokoju na godziny do takich tam zabaw? inform(date.from=today,date.to=tomorrow)&reqmore(date) Tonight, is it possible to book a room by the hour for such games? +system Rezerwacja na jeden dzień? confirm-domain() Booking for one day? +user chciałbym na 3 godziny dzisiejszego wieczoru inform(date.from=today, date.to=today+3hours) I would like for 3 hours tonight +system Niestety możemy dokonać rezerwacji na conajmniej dobę hotelową canthelp Unfortunately, we can only make reservations for at least one hotel night +user ile trwa doba hotelowa? reqmore(hotel_day) how long is the hotel stay? +system Przyjmuje się że doba hotelowa nie powinna trwać krócej niż 20 godzin, lecz może się to różnić między hotelami explain(hotel_day) It is assumed that a hotel day should not be shorter than 20 hours, but this may vary between hotels. +user a jak jest we wskazanym hotelu? reqmore(hotel) and what is it like in the indicated hotel? +system Aby rozpocząć poszukiwania potrzebuje daty rezerwacji pokoju request(date.from,date.to) To start your search, you need the date of your room reservation +user Na ten piątek inform(date.from=26.04, date.to=27.04) For this Friday +system Rezerwacja na ile osób? request(people) Reservation for how many people? +user 3 w tym jedno dziecko ponieżej 12 lat inform(people=2,kids=1, kids.age=[12]) 3 including one child under 12 years old +system Czy układ 1 łóżko dwuosobowe oraz 1 łóżko jednosobowe Panu/Pani odpowiada? confirm-domain(beds) Does the arrangement of 1 double bed and 1 single bed suit you? +user tak, a czy za osobe nieletnią jest zniżka? affirm()&reqmore(kids.discount) yes, and is there a discount for minors? +system Niestety nie posiadam takich informacji odnośnie obiektu canthelp() Unfortunately, I do not have such information about the facility +system W podanym terminie udało znaleźć mi się Pullman Paris Tour Eiffel w cenie 3570 zł, posiada on balkon z widokiem na wieże eiffla, oraz śniadanie do łóżka w cenie. Czy dokonać rezerwacji? "offer(hotel=""Pullman Paris Tour Eiffel"")&inform(cost, extra)" On the given date, I managed to find Pullman Paris Tour Eiffel for PLN 3,570, it has a balcony with a view of the Eiffel Tower, and breakfast in bed is included in the price. +user Tak affirm() So +system Czy potrzebuje Pan/Pani faktury vat? request(fv24) Do you need a VAT invoice? +user Tak to wyjazd służbowy inform(fv24=true) Yes, it's a business trip +system Dobrze, oto Pana kod rezerwacji ymbape-markinios-peesze, płatności należy dokonać pod tym linkiem: https://fake-blik.cn/pay/?transaction_id=391839184 affirm() Okay, here is your reservation code ymbape-markinios-peesze, payment should be made via this link: https://fake-blik.cn/pay/?transaction_id=391839184 +system Czy mogę jeszcze w czymś pomóc? more_help() Can I help with anything else? +user To wszystko dziękuje bye() That is all, thank you +system Dziękuje za skorzystanie z naszych usług, miłego wyjazdu! bye() Thank you for using our services, have a nice trip! diff --git a/translated_data/dialog-01-06-01.tsv b/translated_data/dialog-01-06-01.tsv new file mode 100644 index 0000000..5227a6d --- /dev/null +++ b/translated_data/dialog-01-06-01.tsv @@ -0,0 +1,13 @@ +role value act value_en +system Witaj, jestem systemem wspomagającym rezerwacje pokoi hotelowych, w czym mogę ci pomóc? welcomemsg() Hello, I am a hotel room reservation system, how can I help you? +user Chciałbym zarezerwować pokój dla 2 osob, z soboty na niedziele(30-31.04) we Wrocławiu, w okolicach lotniska inform(people=2,date.from=30.04,date.to=31.04,place='Wroclaw airport') I would like to book a room for 2 people, from Saturday to Sunday (30-31/04) in Wrocław, near the airport +system Czy łóżko w pokoju ma być dwuosobowe? request(beds) Should the bed in the room be a double bed? +user Będę z kolegą, więc proszę żeby były oddzielne inform(beds.single=2) I will be with a friend, so please keep them separate +system Niestety kwiecień ma 30 a nie 31 dni, czy zmienić okres rezerwacji na 30.04-01.05? request(date.from,date.to) Unfortunately, April has 30 and not 31 days, should I change the reservation period to 30/04-01/05? +user oczywiscie, prosze o to mi chodzilo inform(date.from=30.05,date.to=31.05) of course, that's what I meant +system W podanym przez Pana/Panią terminie możliwa jest rezerwacja w Arche Hotel Wrocław Airport. Znajduje się on bezpośrednio przy lotnisku, posiada dwa łóżka jednoosobowe. Dodatkowo jest wysoko oceniany przez gości (9,1/10). Koszt takiej rezerwacji wynosi 523 zł, z możliwością rozszerzenia o śniadanie w cenie 70 zł. "offer(hotel=""Arche Hotel Wrocław Airport."")&inform(cost, extra)" It is possible to make a reservation at Arche Hotel Wrocław Airport on the date you specified. +system Czy dokonać rezerwacji? Should I make a reservation? +user Bede pozno, do kiedy najpozniej moge sie zameldoeac? reqmore(hotel_day) I'll be arriving late, what's the latest date I can check in? +system Recepcja w wybranym hotelu funkcjonuje 24h 7 dni w tygodniu inform(hotel_day=24/7) The reception at the selected hotel is open 24 hours a day, 7 days a week +user Ok, dziękuję za pomoc bye() Ok thank you for help +system Dziękuje za skorzystanie z naszych usług. Miłego wyjazdu! bye() Thank you for using our services. diff --git a/translated_data/dialog-01-08-01.tsv b/translated_data/dialog-01-08-01.tsv new file mode 100644 index 0000000..4bf3f01 --- /dev/null +++ b/translated_data/dialog-01-08-01.tsv @@ -0,0 +1,20 @@ +role value act value_en +system Witaj, jestem systemem wspomagającym rezerwacje pokoi hotelowych, w czym mogę ci pomóc? welcomemsg() Hello, I am a hotel room reservation system, how can I help you? +user Chciałbym zarezerwować pokój w hotelu na ten weekend, czy była by taka możliwość? inform(date.from=26.04,date.to=28.04) I would like to book a hotel room for this weekend, would it be possible? +system Rezerwacja w jakim mieście cię interesuje? request(place) Booking in which city are you interested in? +user W Poznaniu, chciałbym się także dowiedzieć jakie standardy ma hotel, ponieważ opinię na google nie są zbyt przychylne. inform(place='Poznan') In Poznań, I would also like to find out what standards the hotel has, because the reviews on Google are not very favorable. +system Jestem systemem nie przypisanym do jednego konkretnego hotelu, oferujemy pomoc w rezerwacje pokoi hotelowych w hotelach zarejestrowanych w naszej bazie inform(system_info) I am a system not assigned to one specific hotel, we offer assistance in booking hotel rooms in hotels registered in our database +user Okej, jaki jest najdroższy hotele w Poznaniu, jaki masz w swojej ofercie? inform(sort=['price.desc']) Okay, what is the most expensive hotel in Poznań that you have on offer? +system Rezerwacja opiewałaby na jaką liczbę osób? request(people) The reservation would be for how many people? +user Na dwie osoby. inform(people=2) For two people. +system Ile z nich to dzieci? request(kids) How many of them are children? +user Nie ma żadnych dzieci. inform(kids=0) There are no children. +system Znalazłem ofertę Apartamenty Browar Luxury Old Town Poznań Check In 24h w terminie 30.03-31.03. Koszt rezerwacji wynosi 898 zł. Istnieje opcja rozszerzenia o śniadanie w cenie 31 PLN "offer(hotel=""Apartamenty Browar Luxury Old Town Poznań Check In 24h "")&inform(cost, extra)" I found the offer Apartamenty Browar Luxury Old Town Poznań Check In 24h on March 30-31. +system Czy zarezerwować apartament? reserve() Should I book an apartment? +user Tak zarezerwuj ten apartament. affirm() Yes, book this apartment. +system Czy potrzebna będzie Panu faktura? request(fv24) Will you need an invoice? +user Nie inform(fv24) NO +system Dobrze, oto Pana kod rezerwacji m45n0-f35t-piwo, płatności należy dokonać pod tym linkiem: https://fake-blik.cn/pay/?transaction_id=20139102300 affirm() Okay, here is your reservation code m45n0-f35t-piwo, payment should be made via this link: https://fake-blik.cn/pay/?transaction_id=20139102300 +system Czy mogę jeszcze w czymś pomóc? more_help() Can I help with anything else? +user Nie, to wszystko, dziękuję za pomoc. bye() No, that's all, thank you for your help. +system Dziękuje za skorzystanie z naszych usług, miłego wyjazdu! bye() Thank you for using our services, have a nice trip! diff --git a/translated_data/dialog-01-12-01.tsv b/translated_data/dialog-01-12-01.tsv new file mode 100644 index 0000000..0a57c97 --- /dev/null +++ b/translated_data/dialog-01-12-01.tsv @@ -0,0 +1,23 @@ +role value act value_en +system Witaj, jestem systemem wspomagającym rezerwacje pokoi hotelowych, w czym mogę ci pomóc? welcomemsg() Hello, I am a hotel room reservation system, how can I help you? +user chciałbym zarezerować pokoj badz pokoje dla 8 osob inform(people=8) I would like to book a room or rooms for 8 people +system W jakim mieście interesuje cię rezerwacja? request(place) In which city are you interested in booking? +user a jakie sa ograniczenia w doborze miasta ? reqmore(place) and what are the restrictions in choosing a city? +system Jeżeli hotel w danym mieście jest zarejestrowany w naszej bazie to jest on brany pod uwagę przy wyborze lokalizacji i porównywaniu cen. Jeżeli nie, zostanie to zakomunikowane bądź zaproponowany zostanie hotel najbliżej pożądanej lokalizacji inform(place) If a hotel in a given city is registered in our database, it is taken into account when choosing a location and comparing prices. +user czy ogranicza się to na teran polski reqmore(place='Poland') Is it limited to Poland? +system Nie, oferujemy możliwość rezerwacji w hotelach poza granicami Polski inform(place) No, we offer the possibility of booking hotels outside Poland +user to chciałbym zarezerować pokój w Trójmieście. Preferuje hotele trzy-cztero gwiazdkowe inform(place=['Gdansk','Gdynia','Sopot']) I would like to book a room in Tricity. +system W jakim terminie interesuje Pana/Panią rezerwacja? request(date.from,date.to) What date are you interested in booking? +user Lipiec - Sierpien na tydzien inform(date.from=July,date.to=August,duration=week) July - August per week +system Niestety mogę tylko zaoferować wyszukiwanie w konkretnej dacie, +-1, 2, 3 lub 7 dni cant_help()&request(date.from,date.to) Unfortunately I can only offer a search on a specific date, -1, 2, 3 or 7 days +user od 1 do 8 sierpnia inform(date.from=1.07,date.to=8.07) from August 1 to 8 +system Czy w przypadku jednego pokoju interesuje Pana/Panią konkretny podział łóżek? request(beds) In the case of one room, are you interested in a specific division of beds? +user najlepiej jakby były pokoje 4 z podwojnym łoziem inform(rooms=4,beds.double=1) it would be best if there were 4 rooms with a double bed +system W podanym terminie udało mi się znaleźć Apartament z balkonem Gdańsk Stare Miasto, 2 łóżka podwójne i dwie rozkładane sofy. Koszt rezerwacji to 3528 zł, niestety nie ma opcji śniadania. Czy dokonać rezerwacji? "offer(hotel=""Apartament z balkonem Gdańsk Stare Miasto,"")&inform(cost, rooms, beds)" On the given date, I managed to find an apartment with a balcony in Gdańsk Stare Miasto, 2 double beds and two sofa beds. +user poszukaj ze sniadaniem inform(extra.breakfast=true) look for breakfast +system W podanym terminie udało mi się znaleźć Kamienica Morska Gdynia. 4 pokoje z podwójnymi łóżkami. Koszt rezerwacji to 10596 zł, śniadanie jest wliczone w cenę. Czy dokonać rezerwacji? "offer(hotel=""Kamienica Morska Gdynia."")&inform(cost,rooms, beds)" I managed to find Kamienica Morska Gdynia on the given date. +user tak affirm() so +system Dobrze, oto Pana kod rezerwacji undada-sea-2010, płatności należy dokonać pod tym linkiem: https://fake-blik.cn/pay/?transaction_id=2318031 affirm() Okay, here is your reservation code undada-sea-2010, payment should be made via this link: https://fake-blik.cn/pay/?transaction_id=2318031 +system Czy mogę jeszcze w czymś pomóc? more_help() Can I help with anything else? +user nie dziekuje bye() no thanks +system Dziękuje za skorzystanie z naszych usług, miłego wyjazdu! bye() Thank you for using our services, have a nice trip! diff --git a/translated_data/dialog-02-01-01.tsv b/translated_data/dialog-02-01-01.tsv new file mode 100644 index 0000000..b699b85 --- /dev/null +++ b/translated_data/dialog-02-01-01.tsv @@ -0,0 +1,11 @@ +role value act value_en +system Witam, jestem systemem dialogowym do rezerwowania pokoi hotelowych. W czym mog� Ci pom�c? welcomemsg() Hello, I am a dialogue system for booking hotel rooms. +user Potrzebowałbym zarezerwować pokój hotelowy w Mediolanie na przyszły tydzień, pon-wt, najlepiej blisko dzielnicy san siro inform(date='next week', place='Mediolan', place.nearby='San Siro') I would like to book a hotel room in Milan for next week, Mon-Tue, preferably close to the San Siro district +system Dla ilu osób ma być pokój? request(people) How many people should the room accommodate? +user Dla jednej osoby, koniecznie z łóżkiem dwuosobowym i klimatyzacją inform(people=1, beds.double=1,extra.airConditioning=true) For one person, necessarily with a double bed and air conditioning +system W podanym przez Ciebie terminie znalazłem 3-gwiazdkowy Hotel Astoria za 280 zł za noc. W tej cenie są zapewnione śniadania. W pokoju jest łóżko 2-osobowe i klimatyzacja. inform(price=280, stars=3,extra.breakfastIncluded=true, extra.airConditioning=true, beds.double=2)&offer(hotel='Hotel Astoria') On the date you specified, I found a 3-star Hotel Astoria for PLN 280 per night. +user Jak daleko jest on od Stadio San Siro? request(extra.distance.SanSiro) How far is it from Stadio San Siro? +system Hotel znajduje się w odległości 200 metrów od San Siro. inform(extra.distance.SanSiro=0.2) The hotel is 200 meters from San Siro. +user Jak wyglądają godziny doby hotelowej w proponowanym hotelu? request(extra.check-in, extra.check-out) What are the hotel hours at the proposed hotel? +system Doba hotelowa trwa od 15:00 do 10:00. inform(extra.check-in=15:00, extra=check.out=10:00) The hotel day is from 15:00 to 10:00. +user Ok, dziękuje to wszystko bye() Ok, thank you for all that diff --git a/translated_data/dialog-02-03-01.tsv b/translated_data/dialog-02-03-01.tsv new file mode 100644 index 0000000..9e16276 --- /dev/null +++ b/translated_data/dialog-02-03-01.tsv @@ -0,0 +1,13 @@ +role value act value_en +system Witam, jestem systemem dialogowym do rezerwowania pokoi hotelowych. W czym mogę Ci pomóc? welcomemsg() Hello, I am a dialogue system for booking hotel rooms. +user Chciałbym znaleźć hotel w Grecji, który ma basen i jest blisko plaży. Jak najtańszy inform(place='Greece', extra.swimmingPool=true, place.nearby='beach', price='cheapest') I would like to find a hotel in Greece that has a swimming pool and is close to the beach. +system Dla ilu osób ma być pokój? request(people) How many people should the room accommodate? +user 2 inform(people=2) 2 +system Jaki termin Cię interesuje? request(date) What date are you interested in? +user Dowolny tydzień lipca inform(date='any week of July') Any week in July +system W terminie 12-19 lipca dostępny jest pokój 2-osobowy na Krecie w cenie 230 zł za dobę razem ze śniadaniem. Czy taka opcja Ci odpowiada? inform(people=2, date.from=12.07, date.to=19.07, place='Kreta', price=230, extra.breakfastIncluded=true) A double room in Crete is available from July 12-19 for PLN 230 per day including breakfast. +user Jak najbardziej. Chciałbym tylko dopytać czy jest możliwość bezpłatnego odwołania affirm()&request(extra.freeCancellation) Of course. +system Bezpłatne odwołanie rezerwacji można dokonać maksymalnie dwa tygodnie przed datą przyjazdu. W późniejszym terminie opłata za odwołanie rezerwacji wynosi 50% całkowitej ceny za pobyt. inform(extra.freeCancellation='two weeks before arrival', price=50%) Free cancellation can be made up to two weeks prior to arrival. +user Dziękuję bardzo. Czy można zapłacić blikiem? thankyou()&request(extra.payment.blik) Thank you very much. +system Jak najbardziej. Całkowita kwota za pobyt wynosi 1610 zł. W przypadku płatności BLIK, proszę wysłać pieniądze na numer telefonu 345-645-423. inform(extra.payment.blik=true) Of course. +user Dziękuję bardzo bye() Thank you very much diff --git a/translated_data/dialog-02-03-02.tsv b/translated_data/dialog-02-03-02.tsv new file mode 100644 index 0000000..e9b79f5 --- /dev/null +++ b/translated_data/dialog-02-03-02.tsv @@ -0,0 +1,9 @@ +role value act value_en +system Dzień dobry, jestem systemem dialogowym do rezerwowania pokoi hotelowych. W czym mogę Ci pomóc? welcomemsg() Good morning, I am a dialogue system for booking hotel rooms. +user chciałbym zarezerować jak najtańszy hotel all-inclusive na Wyspach Kanaryjskich inform(price='cheapest', place='Canary Island', extra.all-inclusive=true) I would like to book the cheapest all-inclusive hotel in the Canary Islands +system Jaki termin Cię interesuje? request(date) What date are you interested in? +user 01.09-10.09 tego roku inform(date.from=01.09.2024, date.to=10.09.2024) 01/09-10/09 this year +system Mogę zaproponować Hotel Noelia, w którym pokój dwuosobowy w podanym przez Ciebie terminie kosztuje 367 zł. inform(people=2, price=367)&offer(hotel='Hotel Noelia') I can recommend Hotel Noelia, where a double room costs PLN 367 for the dates you specified. +user Czy jest blisko plaży request(extra.distance.beach) Is it close to the beach +system Znajduje się w odległości 200 metrów od plaży. inform(extra.distance.beach=0.2) It is located 200 meters from the beach. +user Dziękuję. W takim razie chcialbym go zarezerwowac affirm()&bye() Thank you. diff --git a/translated_data/dialog-02-05-01.tsv b/translated_data/dialog-02-05-01.tsv new file mode 100644 index 0000000..c52ee82 --- /dev/null +++ b/translated_data/dialog-02-05-01.tsv @@ -0,0 +1,15 @@ +role value act value_en +system Dzień dobry, jestem systemem dialogowym do rezerwowania pokoi hotelowych. W czym mogę Ci pomóc? welcomemsg() Good morning, I am a dialogue system for booking hotel rooms. +user Chciałbym zarezerwować pokój dla jednej osoby niedaleko gór sowich. Cena ma nie przekraczać 200zł za dobę oraz musi być zapewniona możliwość śniadania na miejscu inform(people=1, place='Góry Sowie', price.perDay.max=200, extra.breakfastIncluded=true) I would like to book a room for one person near the Owl Mountains. +"system " Jaki termin Cię interesuje? request(date) What date are you interested in? +user 29-31 marca request(date.from=29.03, date.to=31.03) 29-31 mark +system "W podanym terminie mógłbym zaproponować 3-gwiazdkowy hotel ""Dom pod Twierdzą"" w cenie 190 zł za dobę. W hotelu jest restauracja oferująca posiłki, w tym śniadania, jednak nie są one uwzględnione w cenie hotelu." inform(extra.star=3,extra.restaurant=true, extra.breaksaftIncluded=false, price=190)&offer(hotel='Dom pod Twierdza') "On the given date, I could offer a 3-star hotel ""Dom pod Wiedzą"" for PLN 190 per day. " +user A czy znalazłbyś ofertę, która uwzględnia posiłki w cenie pokoju? inform(extra.breakfastIncluded=true)&reqalts() Could you find an offer that includes meals in the room price? +system "Znalazłem hotel ""Rezydencja Klonowa"", ale przekracza on nieco Twoje wymagania. Cena za dobę wraz ze śniadaniem wynosi 214 zł." inform(price=214)&offer(hotel='Rezydencja Klonowa') "I found the ""Rezydencja Klonowa"" hotel, but it exceeds your requirements a bit. " +user Czy bardziej opłaca się pierwszy wybór z dokupionym śniadaniem czy drugi z wliczonym? reqmore(hotel) Is it more profitable to choose the first choice with breakfast included or the second one with breakfast included? +system W pierwszej opcji śniadanie kosztuje 35 zł. Zatem całkowity koszt za dobę wyniesie więcej niż w przypadku drugiej opcji. inform(extra.breakfast.price=35) In the first option, breakfast costs PLN 35. +user Tak więc chciałbym zarezerwować drugą opcję inform(extra.option=2)&affirm() So I would like to book the second option +system Proszę o podanie swoich danych: imię i nazwisko, numer telefonu i adres email. request(data[firstName, lastName, phoneNumber, email]) Please provide your details: name and surname, telephone number and email address. +user Warol Kojtyła, +379 213 769 420, john_paul_ii@vatican.va inform((data[name, phoneNumber, email] = [Warol Kojtyła, '+379 213 769 420', 'john_paul_ii@vatican.va'] Warol Kojtyła, 379 213 769 420, john_paul_ii@vatican.va +system Numer Twojej rezerwacji to 3453221512. Pamiętaj, o tym, żeby ją opłacić maksymalnie 3 dni przed przyjazdem. W przeciwnym wypadku zostanie ona anulowana. inform(extra.reservationNumber='3453221512', extra.payment.date='minimum 3 days before arrival') Your reservation number is 3453221512. Remember to pay it no later than 3 days before arrival. +user Dziękuję za rezerwację bye() Thank you for the reservation diff --git a/translated_data/dialog-02-07-01.tsv b/translated_data/dialog-02-07-01.tsv new file mode 100644 index 0000000..92a1263 --- /dev/null +++ b/translated_data/dialog-02-07-01.tsv @@ -0,0 +1,21 @@ +role value act value_en +system Cześć, jestem systemem dialogowym do rezerwowania pokoi hotelowych. W czym mogę Ci pomóc? welcomemsg() Hello, I am a dialogue system for booking hotel rooms. +user Szukam wolnych pokoi na ten weekend w Szklarskiej Porębie lub w jej okolicy. Czy mógłbyś coś dla mnie odszukać? inform(place='Szklarska Poreba', date='this weekend') I am looking for available rooms for this weekend in Szklarska Poręba or its surroundings. +system Dla ilu osób mają być pokoje? request(people) How many people should the rooms accommodate? +user Pokój dla 4 osób inform(people=4) Room for 4 people +system W najbliższy weekend nie ma niestety dostępnych pokoi 4-osobowych. Mogę zaproponować 2 pokoje 2-osobowe albo poszukać w późniejszym terminie. canthelp(room.people=4)&inform(room.people=2, room.number=2) Unfortunately, there are no 4-person rooms available this weekend. +user A jaki inny termin mógłbyś zaproponować? request(date) What other date could you suggest? +system W terminie 30-31 marca jest dostępny pokój 4-osobowy w hotelu Blue Mountain Resort. Cena za dobę wynosi 431 zł.  inform(date.from=30.03, date.to=31.03, room.people=4, price.perDay=431)&offer('Blue Mountain Resort') A 4-person room is available at the Blue Mountain Resort hotel on March 30-31. +user A czy znajdzie się coś tańszego? inform(price='cheaper')&reqalts() Is there anything cheaper? +system Znalazłem również hotel Kryształ w cenie 340 zł za dobę, jednak jest on w nieco niższym standardzie. inform(price.perDay=340, extra.standard='lower')&offer(hotel='Kryształ') I also found the Kryształ hotel for PLN 340 per night, but it is of a slightly lower standard. +user Ile ma gwiazdek? request(star) How many stars does it have? +system Hotel jest 3-gwiazdkowy. inform(star=3) The hotel is 3 stars. +user Może być. Chciałbym zarezerwować ten pokój w terminie 30-31 marca. Czy jest możliwość dokupienia śniadania? inform(date.from=30.03, date.to=31.03)&affirm()&request(breakfast) May be. +system Jest możliwość dokupienia śniadania w cenie 39,31 zł za dzień. W celu stworzenia rezerwacji potrzebuję Twoje dane: imię i nazwisko, numer telefonu oraz email. inform(breakfast.price=39,31)&request(data[firstName, lastName, phoneNumber, email]) It is possible to purchase breakfast for PLN 39.31 per day. +user W takim razie poproszę o dokupienie śniadania na cały pobyt. inform(breakfast=true) In that case, I will ask you to buy breakfast for the entire stay. +user Dane do rezerwacji: Michał Gulczyński, 123456789, adres@gmail.com inform(data[name, phoneNumber, email] = ['Michał Gulczyński', '123456789', 'adres@gmail.com'] Reservation details: Michał Gulczyński, 123456789, adres@gmail.com +system Numer Twojej rezerwacji to 3453221513. Pamiętaj, o tym, żeby ją opłacić maksymalnie 3 dni przed przyjazdem. W przeciwnym wypadku zostanie ona anulowana. inform(extra.reservationNumber='3453221512', extra.payment.date='minimum 3 days before arrival') Your reservation number is 3453221513. Remember to pay it no later than 3 days before arrival. +user Ok, dziękuję za informacje thankyou() OK thank you for the information +user Czy mógłbyś mi jeszcze podać godziny zameldowania i wymeldowania? request(extra.check-in, extra.check-out) Could you please tell me the check-in and check-out times? +system Doba hotelowa jest w godzinach 15:00-10:00. inform(extra.check-in=15:00, extra=check.out=10:00) Hotel check-in time is from 15:00 to 10:00. +user Ok, dziękuję za pomoc bye() Ok thank you for help diff --git a/translated_data/dialog-02-09-01.tsv b/translated_data/dialog-02-09-01.tsv new file mode 100644 index 0000000..921ef81 --- /dev/null +++ b/translated_data/dialog-02-09-01.tsv @@ -0,0 +1,10 @@ +role value act value_en +system Dzień dobry, jestem systemem do rezerwowania pokoi hotelowych. W czym mogę Ci pomóc? welcomemsg() Good morning, I am a hotel room booking system. +user Dzień dobry, chciałbym zarezerwować pokój dla 3 osób w Amsterdamie. Najlepiej, gdyby hotel znajdował się w miarę blisko metra i nie był za drogi. Nie musi być w centrum. inform(people=3, place='Amsterdam', price='cheap', extra.metro=true, extra.cityCentre=false) Good morning, I would like to book a room for 3 people in Amsterdam. +system Znalazłem hotel, który może odpowiadać Twoim wymaganiom. Volkshotel leży na obrzeżach Amsterdamu i w odległości 200 metrów od niego znajduje się metro. Cena za dobę w tym hotelu wynosi 240 zł. inform(price=200, place='Amsterdam', extra.metro.distance=0.2, extra.suburbs=true)&offer(hotel='Volkshotel') I have found a hotel that may suit your requirements. +user Czy są tam wolne pokoje w dniach od 1 do 6 kwietnia? request(rooms, date.from=01.04, date.to=06.04) Are there any rooms available from April 1st to April 6th? +system Tak, jest dostępny pokój 3-osobowy. inform(room.people=3) Yes, there is a triple room available. +user W takim razie poproszę o złożenie rezerwacji w tym hotelu na podane dni. affirm() In that case, please make a reservation at this hotel for the given days. +system Chciałbyś dokupić pakiet śniadań w cenie 29 zł za dobę za osobę? request(extra.breakfast, extra.breakfast.price=29) Would you like to buy a breakfast package for PLN 29 per day per person? +user Nie, dziękuję. negate() No thanks. +system Numer Twojej rezerwacji to 3453221512. Pamiętaj, o tym, żeby ją opłacić maksymalnie 3 dni przed przyjazdem. W przeciwnym wypadku zostanie ona anulowana. inform(extra.reservationNumber='3453221512', extra.payment.date='minimum 3 days before arrival') Your reservation number is 3453221512. Remember to pay it no later than 3 days before arrival. diff --git a/translated_data/dialog-02-11-01.tsv b/translated_data/dialog-02-11-01.tsv new file mode 100644 index 0000000..e2d9ef2 --- /dev/null +++ b/translated_data/dialog-02-11-01.tsv @@ -0,0 +1,10 @@ +role value act value_en +system Hej, jestem systemem dialogowym, który pomoże Ci zarezerwować pokój hotelowy. Co mogę dla Ciebie zrobić? welcomemsg() Hello, I'm a dialogue system that will help you book a hotel room. +user Chciałbym wylecieć do las vegas na tydzień, w moim hotelu musi być kasyno ale cena za noc na osobę nie może przekroczyć $100 inform(place='Las Vegas', extra.duration='one week', extra.casino=true, price.perDay.max=100, price.currency='dollar') I would like to fly to las vegas for a week, my hotel must have a casino but the price per night per person cannot exceed $100 +system Niestety nie mogę zaproponować hotelu, który odpowiadałby Twoim oczekiwaniom. Najtańsza opcja w okolicy wynosi $167. canthelp(price)&inform(price.perDay.min=147, price.currency='dollar') Unfortunately, I cannot recommend a hotel that would meet your expectations. +user Kurcze, jak sprawdzałem na bookingu to wydawało mi sie ze nie ma z tym problemu. Sprawdź jeszcze raz na 11-14 kwietnia np  Ellis Island Hotel Casino & Brewery restart()&inform(date.from=11.04, date.to=14.04, hotel='Ellis Island Hotel Casino & Brewery') Damn, when I checked on booking, it seemed to me that there was no problem with it. +system Przepraszam, za wprowadzenie w błąd. Rzeczywiście ten hotel oferuje niższe ceny. Czy chciałbyś zarezerwować w nim nocleg? affirm()&request(reservation) Sorry for misleading you. +user tak, na 3 noce od 11 kwietnia affirm() yes, for 3 nights from April 11th +system W celu stworzenia rezerwacji potrzebuję Twoje dane: imię i nazwisko, numer telefonu oraz email. request(data[firstName, lastName, phoneNumber, email]) In order to create a reservation, I need your data: name and surname, telephone number and email address. +user Karol Cyganik 12345677 ksuevkj@nf.com inform(data[name, phoneNumber, email] = ['Karol Cyganik', '12345677', 'ksuevkj@nf.com'] Karol Cyganik 12345677 ksuevkj@nf.com +system Numer Twojej rezerwacji to 3453221514. Pamiętaj, o tym, żeby ją opłacić maksymalnie 3 dni przed przyjazdem. W przeciwnym wypadku zostanie ona anulowana. inform(extra.reservationNumber='3453221514', extra.payment.date='minimum 3 days before arrival') Your reservation number is 3453221514. Remember to pay it no later than 3 days before arrival. diff --git a/translated_data/dialog-02-13-01.tsv b/translated_data/dialog-02-13-01.tsv new file mode 100644 index 0000000..becf255 --- /dev/null +++ b/translated_data/dialog-02-13-01.tsv @@ -0,0 +1,13 @@ +role value act value_en +"system " Cześć, jestem systemem dialogowym do rezerwowania pokoi hotelowych. W czym mogę Ci pomóc? welcomemsg() Hello, I am a dialogue system for booking hotel rooms. +user Czy system ten skupia się na konkretnej sieci hoteli czy skupiasz się na całym rynku ofert? request(extra.specificHotel) Does this system focus on a specific hotel chain or do you focus on the entire market of offers? +system W swojej ofercie mam posiadam bardzo wiele hoteli, nie tylko z konkretnej sieci. inform(specificHotel=false) My offer includes many hotels, not only from a specific chain. +user Wybornie planuje wyjazd do Lizbony czy mógłbyś znależć coś ciekawego? inform(place='Lizbona') I'm planning a trip to Lisbon, could you find something interesting? +system Jaki termin Cię interesuje i dla ilu osób? request(date, people) What date are you interested in and for how many people? +user Coś na końcówkę marca dla 5 osób. inform(date='end of March, people=5) Something for the end of March for 5 people. +system Mogę zaproponować pokój 5-osobowy w hotelu Lisboa w terminie 28-31 marca. Cena za dobę wynosi 506 zł za cały pokój. inform(room.people=5, date.from=28.03, date.to=31.03, price.perDay.perRoom=506)&offer(hotel='hotel Lisboa') I can offer a 5-person room at the Lisboa hotel on March 28-31. +user Jest to cena jednostkowa czy za całą grupę? request(price.perDay.perRoom) Is this a unit price or for the entire group? +system Jest to cena za całą grupę.  inform(price.perDay.perRoom=true) This is the price for the entire group.  +user A czy wiadomo jaki metraż jest tego pokoju i czy ma więcej niż jedną łazienkę? request(room.size, extra.bathroom.number='more than one') Do you know what the size of this room is and whether it has more than one bathroom? +system Pokój ma 48 metrów kwadratowych i posiada jedną łazienkę. inform(room.size=48, extra.bathroom.number=1) The room is 48 square meters and has one bathroom. +user A czy w cenie do 700 zł znalazłby się pokój nieco większy, ale z dwoma łazienkami? inform(price=700, extra.bathroom.number=2) And for a price of up to PLN 700, would there be a slightly larger room, but with two bathrooms? diff --git a/translated_data/dialog-03-02-01.tsv b/translated_data/dialog-03-02-01.tsv new file mode 100644 index 0000000..cd8444b --- /dev/null +++ b/translated_data/dialog-03-02-01.tsv @@ -0,0 +1,20 @@ +role value act value_en +user Dzień dobry hello() Good morning +system Witam, jestem systemem do rezerwowania pokoi hotelowych. W czym mogę Ci pomóc? welcomemsg() Hello, I am a system for booking hotel rooms. +user Chciałbym wyjechać z rodziną w góry. Nie mam konkretnego kierunku, ale ważne, żeby w okolicy były trasy, na które można iść z dziećmi. inform(place='mountains', extra='routesForChildren') I would like to go to the mountains with my family. +system W jakim terminie chciałby Pan zarezerwować pokój? request(date) When would you like to book a room? +user 19-28 lipca inform(date.from=19.07, date.to=28.07) July 19-28 +system Dla ilu osób chciałbyś zarezerwować pokój? request(people) How many people would you like to book a room for? +user Dla 2 dorosłych i 2 dzieci inform(people.adult=2,people.kids=2) For 2 adults and 2 children +system "Proponuję ""Pokój rodzinny typu Standard z łóżkiem typu queen-size i rozkładaną sofą"" w hotelu Kyriad KARKONOSZE: +https://www.booking.com/Share-FkDy62 + +Dobrym rozwiązaniem dla rodziców z dziećmi będzie skorzystanie z kolejki na Szrenicę i spacer karkonoskim grzbietem, lub wybranie szlaku w dolinach, np. na Chybotek i Złoty Widok w Szklarskiej Porębie" offer(room='Pokój rodzinny typu Standard z łóżkiem typu queen-size i rozkładaną sofą', hotel='Kyriad KARKONOSZE', extra.link='https://www.booking.com/Share-FkDy62') "I recommend ""Standard Family Room with Queen-size Bed and Sofa Bed"" at the Kyriad KARKONOSZE Hotel: +" +user Czy ten hotel ma restaurację oferującą posiłki dla klientów? request(extra.restaurant) Does this hotel have a restaurant offering meals for customers? +system Oferta obiektu obejmuje restaurację. Śniadanie wliczone jest w cenę. inform(extra.restaurant=true, extra.breakfastIncluded=true) The property offers a restaurant. +user Jaka jest cena pobytu? request(price) What is the price of the stay? +system Łączna cena pobytu to 6 921 zł inform(price=6921) The total price of the stay is PLN 6,921 +user A jaka jest cena pobytu w pokoju 2-osobowym? request(room=1, people=2) What is the price of a stay in a double room? +system Cena rezerwacji jednego pokoju 2-osobowego to 4 771 zł inform(price=4771) The booking price for one double room is PLN 4,771 +user W takim razie proszę zarezerwować jeden pokój dwuosobowy affirm() Then please book one double room diff --git a/translated_data/dialog-03-04-01.tsv b/translated_data/dialog-03-04-01.tsv new file mode 100644 index 0000000..8876932 --- /dev/null +++ b/translated_data/dialog-03-04-01.tsv @@ -0,0 +1,21 @@ +role value act value_en +user Hej, w czym mozesz mi pomoc? hello() Hey, how can you help me? +system Witam, jestem systemem do rezerwowania pokoi hotelowych. W czym mogę Ci pomóc? welcomemsg() Hello, I am a system for booking hotel rooms. +user Jakie macie dostępne pokoje na dzisiejszy wieczór? inform(date.from=29.03, date.to=31.03) What rooms do you have available for tonight? +system Gdzie chciałby Pan zarezerwować pokój? request(place) Where would you like to book a room? +user Pod berlinem koło tego kurortu z basenami i zjedzalniami inform(place.description='close to resort with swimming pools and water slides near Berlin') Near Berlin, next to this resort with swimming pools and dining rooms +system Czy masz na myśli kurort Tropical Island? reqmore(place='Tropical Island') Do you mean the Tropical Island resort? +user Tak affirm() So +system Dla ilu osób chciałbyś zarezerwować pokój? request(people) How many people would you like to book a room for? +user Dla 2, dla mnie i dla koleżanki którą znajde na trasie inform(people.adult=2) For 2, for me and for a friend I find on the route +system Czy masz jakieś dodatkowe ograniczenia odnośnie standardu hotelu i pokoju? request(extra) Do you have any additional restrictions regarding the hotel and room standard? +user a jakie mogą być? request(extra.options) and what can they be? +system Mogą dotyczyć na przykład posiłków wliczonych w cenę, prywatnej łazienki, ceny, basenu inform(extra.options.examples='meals included, private bathroom, price, swimming pool') They may include, for example, meals included in the price, private bathroom, price, swimming pool +user czy prywatna łazienka nie jest standardem wszedzie? request(extra.privateBathroom) isn't a private bathroom standard everywhere? +system Prywatna łazienka nie zawsze jest dostępna. Istnieją hotele umożliwiające pobyt we współdzielonych pokojach inform(extra.privateBathroom) A private bathroom is not always available. +user Chciałbym prywatną łazienkę, jakuzi i ładny widok z okna inform(extra.privateBathroom=true, extra.jacuzzi=true, extra.niceView=true) I would like a private bathroom, a jacuzzi and a nice view from the window +system "Proponuję pokój Apartament z 1 sypialnią w hotelu Bei der Kahnfährfrau... NEU ERSTVERMIETUNG: +https://www.booking.com/Share-okeCY4" offer(room='Apartament z 1 sypialnią', hotel='Bei der Kahnfährfrau... NEU ERSTVERMIETUNG', extra.link='https://www.booking.com/Share-okeCY4') "I suggest the room One-Bedroom Apartment in Hotel Bei der Kahnfährfrau... NEU ERSTVERMIETUNG: +" +user idealny affirm() ideal +user chciałbym go zarezerwować affirm() I would like to book it diff --git a/translated_data/dialog-03-06-01.tsv b/translated_data/dialog-03-06-01.tsv new file mode 100644 index 0000000..19d18f5 --- /dev/null +++ b/translated_data/dialog-03-06-01.tsv @@ -0,0 +1,15 @@ +role value act value_en +user Dzień dobry hello() Good morning +system Witam, jestem systemem do rezerwowania pokoi hotelowych. W czym mogę Ci pomóc? welcomemsg() Hello, I am a system for booking hotel rooms. +user Czy moge zarezerwowac pokoj poza Polska? request(place='abroad') Can I book a room outside Poland? +system Może Pan zarezerwować pokój w dowolnej lokalizacji, także poza Polską inform(place='abroad') You can book a room in any location, also outside Poland +user Dobrze, poprosze o pokoj w Monacium, w okolicach lotniska, dla 2 osob, lozko polaczone. Czas dojazdu z hotelu do lotniska max 15 min inform(place='Monacium', people=2, beds.double=1, extra.place='maximum 15 minutes from airport') Okay, I'd like a room in Monacium, near the airport, for 2 people, one bed combined. +system Czy masz na myśli Monachium? reqmore(place='Monachium') Do you mean Munich? +user Tak, monachium bawaria affirm() Yes, Munich Bavaria +system W jakim terminie chciałby Pan zarezerwować pokój? request(date) When would you like to book a room? +user 24-25.06.2024 inform(date.from=24.06, date.to=25.06) 24-25.06.2024 +system "Proponuję pokój """"Pokój z łóżkiem typu king-size"""" w hotelu Hilton Munich Airport: +https://www.booking.com/Share-UZMQSL" offer(room='Pokój z łóżkiem typu king-size', hotel='Hilton Munich Airport', link='https://www.booking.com/Share-UZMQSL') "I recommend the ""King Room"" room at the Hilton Munich Airport: +" +user suoper, bardzo dziękuję. thankyou() great, thank you very much. +system Cieszę się, że mogłem pomóc bye() I'm glad I could help diff --git a/translated_data/dialog-03-08-01.tsv b/translated_data/dialog-03-08-01.tsv new file mode 100644 index 0000000..8201dcd --- /dev/null +++ b/translated_data/dialog-03-08-01.tsv @@ -0,0 +1,17 @@ +role value act value_en +user Siema, w czym możesz mi pomóc? hello() Hello, how can you help me? +system Witam, jestem systemem do rezerwowania pokoi hotelowych. W czym mogę Ci pomóc? welcomemsg() Hello, I am a system for booking hotel rooms. +user Chciałbym zarezerwować hotel od piątku do niedzieli w Warszawie, jakie hotele proponujesz? inform(date.description='friday to sunday', place='Warsaw') I would like to book a hotel from Friday to Sunday in Warsaw, what hotels do you recommend? +system Czy masz na myśli piątek i sobotę w bieżącym tygodniu (29.03-31.03)? reqmore(date.from=29.03, date.to=31.03) Do you mean Friday and Saturday this week (29/03-31/03)? +user Tak affirm() So +system Czy masz jakieś dodatkowe ograniczenia odnośnie standardu hotelu i pokoju? request(extra) Do you have any additional restrictions regarding the hotel and room standard? +user Chciałbym żeby standard był jak najwyższy. inform(extra.standard='highest') I would like the standard to be as high as possible. +system Dla ilu osób chciałbyś zarezerwować pokój? request(people) How many people would you like to book a room for? +user Chciałbym dokonąć rezeracji dla dwóch osób. inform(people=2) I would like to make a reservation for two people. +system "Proponuję pokój Raffles Room w Raffles Europejski Warsaw +https://www.raffles.com/warsaw/booking/#/booking/rooms/KGA?data=('hDhd!'a7w6'~aeA295dtA315fs-~rDat!2~cn!0~cg-~alBpo.gp.rn-)Cry.rk.re-~rr*)Cax!0~cy.ds!('pe.ls.as.st*)~myBse.ce.ne*)*!null-8%5D.*~5%2F2024'~8!%5BA!'03%2FB!false~C%5D~Ds8('%01DCBA85.-*_" offer(room='Raffles Room', hotel='Raffles Europejski Warsaw', extra.link='https://www.booking.com/Share-FkDy62', link='https://www.raffles.com/warsaw/booking/#/booking/rooms/KGA?data=('hDhd!'a7w6'~aeA295dtA315fs-~rDat!2~cn!0~cg-~alBpo.gp.rn-)Cry.rk.re-~rr*)Cax!0~cy.ds!('pe.ls.as.st*)~myBse.ce.ne*)*!null-8%5D.*~5%2F2024'~8!%5BA!'03%2FB!false~C%5D~Ds8('%01DCBA85.-*_') "I recommend the Raffles Room at Raffles Europejski Warsaw +" +user Brzmi dobrze, a jaki będzie koszt? request(price) Sounds good, but what will it cost? +system Przewidywany całkowity koszt: 3,220 zł inform(price=3220) Estimated total cost: PLN 3,220 +user Okej, dziękuję za pomoc thankyou() Okay, thank you for your help +system Cieszę się, że mogłem pomóc bye() I'm glad I could help diff --git a/translated_data/dialog-03-12-01.tsv b/translated_data/dialog-03-12-01.tsv new file mode 100644 index 0000000..dd67299 --- /dev/null +++ b/translated_data/dialog-03-12-01.tsv @@ -0,0 +1,32 @@ +role value act value_en +user witam hello() Hello +system Witam, jestem systemem do rezerwowania pokoi hotelowych. W czym mogę Ci pomóc? welcomemsg() Hello, I am a system for booking hotel rooms. +user witam chciałbym zarezerować pokój czy są jakies ograniczenia do lokalizacji, które mogę wybrać ? request(place) Hello, I would like to book a room. Are there any restrictions on the location I can choose? +system Nie ma ograniczeń związanych z lokalizacją inform(place='everywhere') There are no location restrictions +user mogą być poza granicami Polski ? request(place='abroad') can they be outside Poland? +system Może Pan zarezerwować pokój w dowolnej lokalizacji, także poza Polską affirm() You can book a room in any location, also outside Poland +user chciałbym zarezerwować hotel w Atenach dla 5 osób "inform(place=""Athens"", people=5)" I would like to book a hotel in Athens for 5 people +system Czy masz jakieś dodatkowe ograniczenia odnośnie standardu hotelu i pokoju? request(extra) Do you have any additional restrictions regarding the hotel and room standard? +user trzy-cztero gwiazdkowy najlepiej ze szwedzkim stołem na sniadanie i kolacje inform(extra.stars=[3,4], extra.breakfastIncluded=true, extra.dinnerIncluded=true) three or four stars, preferably with a buffet for breakfast and dinner +system W jakim terminie chciałby Pan zarezerwować pokój? request(date) When would you like to book a room? +user sierpien-wrzesien inform(date=[august, september]) August September +system Na ile dni chciałbyś zarezerwować pokój? request(date.days) How many days would you like to book a room for? +user tydzien inform(date.days=7) week +system "Proponuję hotel Athens Golden City Hotel: +https://www.booking.com/Share-4wMNmO" offer(hotel='Athens Golden City Hotel', link='https://www.booking.com/Share-4wMNmO') "I recommend Athens Golden City Hotel: +" +user wyglada obiecujace, ale potrzebowałbym do porownania jeszcze z czterech reqmore(propositions=4) looks promising, but I would need four more to compare +system "Dobrze, przesyłam kolejne propozycje: +https://www.booking.com/Share-bv5n7Kp +https://www.booking.com/Share-cxIESm +https://www.booking.com/Share-yNDZQ3 +https://www.booking.com/Share-95dW4Jy" offer(links=['https://www.booking.com/Share-bv5n7Kp','https://www.booking.com/Share-cxIESm','https://www.booking.com/Share-yNDZQ3','https://www.booking.com/Share-95dW4Jy']) "Okay, I'm sending you more suggestions: +" +user Savoy Hotel odpowiadaa mi czy panstwo wspołpracujecie z hotelem i moge liczyc na dodatkowy rabat ? inform(hotel='Savoy Hotel')&request(discount) Savoy Hotel replied to me whether you cooperate with the hotel and can I count on an additional discount? +system Niestety nie współpracujemy z hotelem i nie jesteśmy w stanie zaoferować dodatkowego rabatu deny() Unfortunately, we do not cooperate with the hotel and are unable to offer an additional discount +user okej to nadal Savoy Hotel inform(hotel='Savoy Hotel') ok Savoy Hotel still did it +system "Czy dokonać rezerwacji pokoi ""Pokój typu Classic z 2 łóżkami pojedynczymi"" i ""Apartament typu Suite z 1 sypialnią"" w hotelu Savoy Hotel w terminie 02.09.2024 - 09.09.2024 w cenie 7 367 zł?" offer(rooms=['Pokój typu Classic z 2 łóżkami pojedynczymi','Apartament typu Suite z 1 sypialnią'], hotel='Savoy Hotel', date.from='02.09.2024', date.to='09.09.2024', price=7367) "Should I book the ""Classic Twin Room"" and ""One-Bedroom Suite"" rooms at the Savoy Hotel between 02/09/2024 and 09/09/2024 for PLN 7,367?" +user oczywiscie ze tak affirm() Of course +system Dokonałem rezerwacji inform(reserved=true) I made a reservation +user dzieki thankyou() Thanks +system Cieszę się, że mogłem pomóc bye() I'm glad I could help