Alec  Nikolaus

Alec Nikolaus

1596581700

Seq2Seq modelling for English to French Translations

Building a Seq2Seq network from scratch using Tensorflow and Keras

During quarantine I tried to learn how to speak French to keep myself occupied. This attempt was not successful, so instead I built a neural network to try and learn it for me.

To do this I used a seq2seq recurrent neural network with an attention layer, trained on the House and Senate Debates of the 36th parliament of Canada (found here). Attention based seq2seq models are used commonly throughout a wide range of tasks, in fact if you have ever used Siri or Google Translate chances are you have benefited from this kind of model.

But before I get into how we can build one ourselves, I thought it would be a good idea to quickly touch on some of the theory behind how a seq2seq model works- focusing on a couple of the key elements that allow these models to perform so well.


Image for post

Photo by Alex Ovs on Unsplash

What is a seq2seq model?

A seq2seq model’s goal in regard to NLP is to essentially compute the probability of an output sequence of words when considering an input sequence of words. This is useful for machine translation as we may have a bunch of potential translations and we want to learn which sequence is best — eg the dog is big > the big is dog. Or we may need to choose a word that’s most appropriate for a given sequence — eg running late for work > jogging late for work.

For machine translation we will need to encode a sequence of words into a vector that is easily digestible by the model, and then have the model decode this vector into our target language.We could use one model to do both the encoding and decoding but problems arise when you consider the input length may not match the output length, for example “my mum loves France” translates to “ma maman aime la france” — needing an extra word. These output sequence lengths are not necessarily known beforehand.

This leads us onto seq2seq models. The idea being that you get one model — the encoder — to take a sequence of words and turn them into an encoder vector which represents all the information in the sentence you want to translate. Then you get a decoder that takes this vector and outputs the translated words using a softmax function.

First the encoder takes an input sequence and returns its own hidden state.When computing the encoders hidden states (ht) we only need to consider the current input (xt) and the previous steps hidden state (ht-1) so the equation looks something like this -

Image for post

Then the decoder takes the last hidden vector of the encoder (c=ht), the previous hidden state (ht-1) and the previous predicted output word (yt-1). It may seem strange that we use both the previous predicted output word considering we calculate it from the last hidden vector of the encoder as well but using it allows the softmax to have an impact on current prediction (yt). Additionally rather than a probability distribution yt-1 actually gives a definitive answer on what the previous word was which helps prevent the model from repeating words. So overall our formula for the decoder hidden states looks something like this -

Image for post

Now all we need to do is apply a softmax function at the end as in essence this will still be a multiclass classification problem but now our classes are each word in the target language at the next time step.

Image for post

#nlp #python #data-science #seq2seq #tensorflow

What is GEEK

Buddha Community

Seq2Seq modelling for English to French Translations

Akshaya 7

1608125898

Guide On How The Professional French Translation Services Work In India

French translation services are very much adequate for the people who want to convey their brand reports, information, and other essentials to the French clients or audience. If the businesses can convey with the clients in their native language, then probably the business will experience a progressive hike.

French is one of the best known European languages, and more than 80 million people across the globe speak this language. Therefore, if you are running an MNC, then you might need to leverage the opportunity for seeking sales or business from those 80 million people across the globe.
For better clarity, you must know that French is the second language for more than 100 million people across the globe. If you are wondering why you need the French translation services, then follow this article till the end to get the proper guide on how the professional French translation services can help you out.
At NNB Transtech, we provide All Foreign Language Translation Services.

Hiring Professional French Translation Services!

The professional French translation services offered by the major companies are to help the new and established companies reach out to the French-speaking audience or clients for better business. There are professional firms that are dedicated to offering the best translation services to the top MNCs with the help of subject matter translation experts.

The best part about hiring professionals is that they have a team of French experts who are proficient in different backgrounds. For instance, the professional French translators working in a firm are knowledgeable about Finance, healthcare, automobile, business, and other such niches. Therefore, accuracy is its prime commitment. So, the first step to avail the perfect French translation is to hire the best firm that is offering you ideal French translation services as per your needs and requirements within the specified budget.

The top corporations & organizations are very commonly in touch with clients and consumers all across the globe. Therefore, getting the documents and essentials translated into French is important for the companies to establish healthy communication with the French-speaking audience or clients.

Explain Your French Translation Project to the Professionals

The French translation service providers will assign a project manager for your translation needs. They are trained to understand and pen down everything you need and want to be mentioned in the translated document or promotional media.

Whether you seek French translation for websites or documents, you need to elaborate on the business or field it is related to. Once you do that, you will be asked for giving details on the facts and figures that you don’t want to be altered and should be present in the final output compulsorily.
The medical documents and accounting papers need to be perfectly accurate in terms of figures and facts. No business or individual will want it altered! The skilled employees are well aware of the facts and figures as they are subject matter experts.
But even then, they prefer taking instructions from the clients to overlook the work done before delivering it to the client.

After you explain your project, you will be given a deadline, and the work will begin. Irrespective of the complexity of the document, the professional translators will get it done without much hassle. The professional firms have the right certifications to handle your diverse translation projects.
Start of the Translation Project

After you have handed over your important document or other essential for the French translation, the experts will commence with the work. They have the right tools and expertise to start with quality translation work.

The professional French translation firms make sure to do the translation humanly. It is so because the machines are not accurate and it takes a lot of time to review the machine-translated documents. Therefore, to promote perfection in terms of the French translation, the professionals get it done by humans for utmost accuracy on priority.

Whether you have a medical, technical, financial, or legal document for translation, the experts are certified professionals in the respective background to handle your project. They will start as per your instructions that you stated in the previous step.

You can get the translated document in the desired format such as Adobe in Design, PowerPoint, MSWord, PDF, and others. If you are willing to get your documents translated from English to French without compromising on quality and at affordable pricing, seeking help from professionals is the best option for you.

Delivery of the Translated French Document

After the document has been translated, it is then sent to the review team to look at the accuracy of all the facts and figures. It is the job of the professionals to look after the accuracy of the documents to make them convey the right information to the French clients and consumers.
They are determined to offer you excellent quality, and for that, a proper review is highly demanded before the delivery of the work to the clients. Along with that, the professional firms are open for any type of edits as per the request from the clients.

The professionals leave no loopholes for bringing up the chances of edits. But even if you need more perfection, you can always reach out to your outsourced team to get the edits done without any additional charges. Therefore, the professionals are highly preferred for French translation overdoing it on your own.

Conclusion

These are the steps that act as the guide for you as well as the professional French translation firms to help you offer the best services at affordable pricing. You might be wondering whether to take the help of professional firms or hire an individual language expert.
An amateur language expert might not be proficient with tools and essentials to handle your multiple needs in the French translation project. You might be limited on the outputs by hiring individuals for your projects.

Therefore, it is better to seek help from professionals to help your business get the best benefits by putting up the best French translated documents for healthy communication with French-speaking clients or consumers across the globe.

#french translation services #spanish translation services #japanese translation services #german translation services #translation services

Virgil  Hagenes

Virgil Hagenes

1603047600

How to translate text with python

Introduction

In this tutorial, we will explore different possibilities to translate a text or word using python. From my experience, this is very helpful if you want to automate the translation of many paragraphs, sentences or words.

Furthermore, you can have a backend worker, which receives new data constantly and can either return a request with the translation or store different translations in a database (this is very useful in NLP tasks).

One of the reasons to choose Python apart from the clear syntax and the extensive library is the great community that works extensively on the development of the language itself or extending the functionality with third party modules.

Precisely, one of the modules that makes it straightforward to translate texts is the deep_translator, which provides support for multiple famous translators.

#python #google-translate #translation #translators #translate

Alec  Nikolaus

Alec Nikolaus

1596581700

Seq2Seq modelling for English to French Translations

Building a Seq2Seq network from scratch using Tensorflow and Keras

During quarantine I tried to learn how to speak French to keep myself occupied. This attempt was not successful, so instead I built a neural network to try and learn it for me.

To do this I used a seq2seq recurrent neural network with an attention layer, trained on the House and Senate Debates of the 36th parliament of Canada (found here). Attention based seq2seq models are used commonly throughout a wide range of tasks, in fact if you have ever used Siri or Google Translate chances are you have benefited from this kind of model.

But before I get into how we can build one ourselves, I thought it would be a good idea to quickly touch on some of the theory behind how a seq2seq model works- focusing on a couple of the key elements that allow these models to perform so well.


Image for post

Photo by Alex Ovs on Unsplash

What is a seq2seq model?

A seq2seq model’s goal in regard to NLP is to essentially compute the probability of an output sequence of words when considering an input sequence of words. This is useful for machine translation as we may have a bunch of potential translations and we want to learn which sequence is best — eg the dog is big > the big is dog. Or we may need to choose a word that’s most appropriate for a given sequence — eg running late for work > jogging late for work.

For machine translation we will need to encode a sequence of words into a vector that is easily digestible by the model, and then have the model decode this vector into our target language.We could use one model to do both the encoding and decoding but problems arise when you consider the input length may not match the output length, for example “my mum loves France” translates to “ma maman aime la france” — needing an extra word. These output sequence lengths are not necessarily known beforehand.

This leads us onto seq2seq models. The idea being that you get one model — the encoder — to take a sequence of words and turn them into an encoder vector which represents all the information in the sentence you want to translate. Then you get a decoder that takes this vector and outputs the translated words using a softmax function.

First the encoder takes an input sequence and returns its own hidden state.When computing the encoders hidden states (ht) we only need to consider the current input (xt) and the previous steps hidden state (ht-1) so the equation looks something like this -

Image for post

Then the decoder takes the last hidden vector of the encoder (c=ht), the previous hidden state (ht-1) and the previous predicted output word (yt-1). It may seem strange that we use both the previous predicted output word considering we calculate it from the last hidden vector of the encoder as well but using it allows the softmax to have an impact on current prediction (yt). Additionally rather than a probability distribution yt-1 actually gives a definitive answer on what the previous word was which helps prevent the model from repeating words. So overall our formula for the decoder hidden states looks something like this -

Image for post

Now all we need to do is apply a softmax function at the end as in essence this will still be a multiclass classification problem but now our classes are each word in the target language at the next time step.

Image for post

#nlp #python #data-science #seq2seq #tensorflow

Michael  Hamill

Michael Hamill

1617331277

Workshop Alert! Deep Learning Model Deployment & Management

The Association of Data Scientists (AdaSci), the premier global professional body of data science and ML practitioners, has announced a hands-on workshop on deep learning model deployment on February 6, Saturday.

Over the last few years, the applications of deep learning models have increased exponentially, with use cases ranging from automated driving, fraud detection, healthcare, voice assistants, machine translation and text generation.

Typically, when data scientists start machine learning model development, they mostly focus on the algorithms to use, feature engineering process, and hyperparameters to make the model more accurate. However, model deployment is the most critical step in the machine learning pipeline. As a matter of fact, models can only be beneficial to a business if deployed and managed correctly. Model deployment or management is probably the most under discussed topic.

In this workshop, the attendees get to learn about ML lifecycle, from gathering data to the deployment of models. Researchers and data scientists can build a pipeline to log and deploy machine learning models. Alongside, they will be able to learn about the challenges associated with machine learning models in production and handling different toolkits to track and monitor these models once deployed.

#hands on deep learning #machine learning model deployment #machine learning models #model deployment #model deployment workshop

Bret Kinley

1583299685

BI Database Modeling Tools

At SqlDBM BI database modeling tool help organizations to improve their decision and Analyze billions of records in seconds. Currently " Data Warehouse” is currently trending topic in the data area. We will covering what a Data Warehouse is and how it is created from a SQL script. Visit us to get know more about BI modeling Tools and how it work with SQL.

#export data model #SQL Server BI Modeling #BI modeling Tools #SQL Server Business Intelligence Modeling Tool