<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
<channel>
<title>Coder Legion - Recent posts tagged translation</title>
<link>https://coderlegion.com/tag/translation</link>
<description>Powered by Question2Answer</description>
<item>
<title>Attention Is All You Need - Part 2</title>
<link>https://coderlegion.com/16110/attention-is-all-you-need-part-2</link>
<description>
&lt;p&gt;Hello, I'm Ganesh. I'm building &lt;em&gt;git-lrc&lt;/em&gt;, an AI code reviewer that runs on every commit. It is free, unlimited, and source-available on Github. &lt;a href=&quot;https://github.com/HexmosTech/git-lrc&quot; rel=&quot;noopener noreferrer nofollow&quot;&gt;Star Us&lt;/a&gt; to help devs discover the project. Do give it a try and share your feedback for improving the product.&lt;/p&gt;

&lt;p&gt;In previous article we discussed about the limitations of RNNs and how they were not able to capture long range dependencies and process input in parallel.&lt;/p&gt;

&lt;h2&gt;
  
  
  How was Translation done earlier?
&lt;/h2&gt;

&lt;p&gt;There are many way the translation work but in earlier days it was done using seq2seq models.&lt;/p&gt;

&lt;p&gt;For example:&lt;/p&gt;

&lt;p&gt;Translation: &quot;The cat sat on the mat&quot; -&amp;gt; &quot;Le chat s'est assis sur le tapis&quot;&lt;/p&gt;

&lt;p&gt;This translation was done using RNNs.&lt;/p&gt;

&lt;p&gt;Let's see how this was done.&lt;/p&gt;

&lt;p&gt;Input : Many words&lt;br&gt;
Output : Many words&lt;/p&gt;

&lt;p&gt;&lt;a rel=&quot;nofollow&quot; href=&quot;https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fq0yu25m7r775hek361h1.png&quot; class=&quot;article-body-image-wrapper&quot;&gt;&lt;img src=&quot;https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fq0yu25m7r775hek361h1.png&quot; alt=&quot;&quot; width=&quot;800&quot; height=&quot;210&quot;&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;This had major flaws if the input seqeuence length was long the output was very poor.&lt;/p&gt;

&lt;p&gt;so, this made the accuracy of the model very poor for long sentences.&lt;/p&gt;

&lt;p&gt;If context is very load and it had accuracy issues then decoder might get confused and couldn't predict the correct output.&lt;/p&gt;

&lt;h2&gt;
  
  
  How Long sentence problem was solved?
&lt;/h2&gt;

&lt;p&gt;We had to provide additional context to decoder in order to over come this issues.&lt;/p&gt;

&lt;p&gt;That's when attention mechanism comes into picture.&lt;/p&gt;

&lt;p&gt;This was another improvement over the seq2seq models.&lt;/p&gt;

&lt;p&gt;We add context vector to decoder which help them to have full context vector about the input sequence.&lt;/p&gt;

&lt;h2&gt;
  
  
  What's next?
&lt;/h2&gt;

&lt;p&gt;In this article we discussed how the translation was done earlier and how it was improved with the attention mechanism.&lt;/p&gt;

&lt;p&gt;Reference: &lt;a href=&quot;https://proceedings.neurips.cc/paper_files/paper/2017/file/3f5ee243547dee91fbd053c1c4a845aa-Paper.pdf&quot; rel=&quot;noopener noreferrer nofollow&quot;&gt;https://proceedings.neurips.cc/paper_files/paper/2017/file/3f5ee243547dee91fbd053c1c4a845aa-Paper.pdf&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://github.com/HexmosTech/git-lrc&quot; rel=&quot;noopener noreferrer nofollow&quot;&gt;&lt;img src=&quot;https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fabn6nl3iehrohehnxgje.png&quot; alt=&quot;git-lrc&quot; width=&quot;800&quot; height=&quot;373&quot;&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Any feedback or contributors are welcome! It&amp;rsquo;s online, source-available, and ready for anyone to use. &lt;br&gt;
&amp;#11088; Star it on GitHub: &lt;a href=&quot;https://github.com/HexmosTech/git-lrc&quot; rel=&quot;noopener noreferrer nofollow&quot;&gt;https://github.com/HexmosTech/git-lrc&lt;/a&gt;&lt;/p&gt;


</description>
<category>Other</category>
<guid isPermaLink="true">https://coderlegion.com/16110/attention-is-all-you-need-part-2</guid>
<pubDate>Wed, 29 Apr 2026 18:29:58 +0000</pubDate>
</item>
</channel>
</rss>