
How to Paraphrase Questions In Swedish Using T5 - Ebbot Blog
Paraphrase Questions In Swedish Using T5
After one month of preparing the dataset and training, we proudly present to you a T5 (Text-To-Text Transfer Transfromer) based model that paraphrases any questions in the Swedish language. You might recall that we already developed a similar model, S-BERT, in the past. However, using T5 is completely different compared to our previous approach. Because questions are generated by the model T5 itself, while S-BERT only works as a ”tool” to find similar questions written by humans. By learning from paraphrased questions by the Swedish T5, we are no longer limited to just the topics in our current questions database.
What is T5?
T5 was first presented in the paper Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformer. It is an encoder-decoder model that is pre-trained on a multi-task mixture of unsupervised and supervised tasks, for which each task is converted into a text-to-text format. T5 is able to perform a variety of tasks such as translation, summarization and paraphrase generation. Currently there are many pre-trained models available, which you can use directly or fine-tune for your specific tasks.
Implementation - Step 1: Translating the dataset to Swedish
In order to train a T5 model for Conditional Generation, we need the Quora duplicate questions dataset. Unfortunately there is currently no available dataset in Swedish, we decided to use the translation model from the University of Helsinki to write a Python script and translate the dataset from English to Swedish. The entire translation process took around five days for both training and validating dataset with a total of 298 528 sentences.
Implementation - Step 2: Training T5 to paraphrase questions in Swedish
Thanks to Ramsri, a Data Scientist from India and his detailed tutorial, we were able to learn from the his training script and work on our own T5 paraphrase model for Swedish language. We used Google Colab and utilized their resources including high RAM and GPU to optimize the training time. Therefore, it only took us one day to complete the training process.Thanks to Ramsri, a Data Scientist from India and his detailed tutorial we were able to learn from the his training script and work on our own T5 paraphrase model for Swedish language. We used Google Colab and utilized their resources including high RAM and GPU to optimize the training time. Therefore, it only took us one day to complete the training process.Thanks to Ramsri, a Data Scientist from India and his detailed tutorial we were able to learn from the his training script and work on our own T5 paraphrase model for Swedish language. We used Google Colab and utilized their resources including high RAM and GPU to optimize the training time. Therefore, it only took us one day to complete the training process.Thanks to Ramsri, a Data Scientist from India and his detailed tutorial, we were able to learn from the his training script and work on our own T5 paraphrase model for Swedish language. We used Google Colab and utilized their resources including high RAM and GPU to optimize the training time. Therefore, it only took us one day to complete the training process.
Using Swedish T5 to paraphrase questions
Enough of the boring technicalities, now let’s show you some examples of the model’s performance. Please note that the phrases are generated by the model itself, so there might be grammatical mistakes or random word combinations in some of the sentences 👀
Example 1: The question translated to Where can I see my invoice?
Example 2: The question translated to What does your opening hour look like?
Even though the performance of this model is not absolutely mind-blowing and still having grammatical errors as well as troubles with word orders, we can still learn from the sentences that it generates and have a wider variety of example phrases when training a chatbot. Nevertheless, we are hoping to incorporate T5 with S-BERT in order to help the Customer Implementation Team and our customers, to save more time through providing support during the training process.
More stories

How the EU AI Act will shape the future of service automation
The clock is ticking. The EU AI Act is set to become law, reshaping how artificial intelligence is developed, deployed, and regulated in Europe. For organizations looking to integrate AI solutions, this legislation raises important questions about compliance, accountability, and the choice of AI providers.

Ebbot Achieves ISO 27001 Certification
In 2024, we took on a bold challenge: to earn the internationally recognized ISO 27001 certification. In December, we achieved that goal, marking an important milestone in Ebbot’s commitment to delivering AI-powered service automation with the highest standards of security.

Press release: Gofido first to launch EbbotGPT to customers - Ebbot Blog
Swedish insurance provider Gofido is taking a significant step in its commitment to delivering exceptional customer service by officially launching EbbotGPT. This marks a historic milestone as Gofido becomes the first insurance provider in Sweden to integrate generative AI into its customer support chatbot.

We’re opening our API for EbbotGPT
In celebration of the one-year anniversary of EbbotGPT, we are happy to announce that we are now opening our API for our EU-hosted LLMs, EbbotGPT. This marks a significant milestone in our journey to offer robust AI-driven customer service solutions that are fully compliant with EU data regulations.

From overwhelmed to empowered: GenAI’s role in succeeding with self-service in ITSM
In today’s fast-paced business world, having an efficient internal service management (ITSM) system is more important than ever. But let’s be honest—many ITSM systems are neither user-friendly nor scalable, which ends up making them inefficient. Enter Generative AI (GenAI), a technology that could solve this. But how can we take advantage of this technology in an effective use case without risking security? Let’s break it down.

Ebbot becomes the preferred GenAI partner to renowned chatbot expert Campfire AI
Stockholm, Sweden – July 8, 2024 Campfire AI, a Brussels-based conversational AI consultancy firm, has handpicked Ebbot as its new GenAI partner. From now on, Campfire AI will offer Ebbot’s services to all clients seeking to leverage GenAI in service automation. Ebbot,…

Enento Group chooses Ebbot as strategic AI partner for service automation
Stockholm, Sweden – June 19, 2024 **With a focus on providing a secure GenAI platform for automating service processes at scale, Ebbot has become an attractive partner for enterprises looking to deliver a world class AI service experience. Now signing the Nordic knowledge company [Enento…

Small vs. Large GenAI models – pros & cons
When it comes to generative AI (GenAI) models, size does matter—just maybe not how you'd expect. Both small and large GenAI models have their strengths and weaknesses. Understanding these can help you choose the best model for your needs. Let's break down the pros and cons.🌟 ## The buzz…

Coeo leverages Generative AI to enhance customer experience
coeo Inkassos is rapidly growing and aims to be one of Sweden's largest debt collection agencies in the next five years. Focusing on customer experience as a central strategy, coeo has now set itself apart by becoming the first in the industry to offer 24/7 support with generative AI.

How to make your data sources AI-ready: Step-by-step
Generative AI has revolutionized chatbot training. What once took hours is now completed in minutes. BUT, (there's always a but), the effectiveness of a Generative AI-trained chatbot heavily depends on the quality of its data sources. So, what constitutes a "good" data source for a GenAI chatbot, and what measures can be taken to prepare? Let's find out.

Cross-border service: coeo's live chat breaks down language barriers with a click
The debt collection company coeo Sweden takes its customer service to the next level by introducing an automatic translation feature in its live chat. With the new feature, users can now get real-time support in any language they prefer.

Ebbot Acknowledged by Deloitte as One of the Top 50 Fastest-Growing Technology Companies in Sweden
Stockholm, Sweden, November 2, 2023. Ebbot, providing a conversational AI platform for managing service processes at scale, has been acknowledged by Deloitte as one of the top 50 fastest-growing technology companies in Sweden. ### Background Ebbot,…