Changes between Version 3 and Version 4 of Translator


Ignore:
Timestamp:
07/04/19 11:44:39 (5 years ago)
Author:
wouter
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Translator

    v3 v4  
    1616
    1717== Fragment handling
    18 Another option of the translator is to translate fragments. Consider we have a paragraph containing multiple sentences. Each of these sentences can be translated one of the available tuples in the database.
     18Another option of the translator is to translate fragments. Consider we have a paragraph containing multiple sentences. Each of these sentences can be translated one of the available tuples in the database.  The fragment translator repeatedly tries to apply the following steps until the entire paragraph is translated:
     19
     20{{{
     21        if text starts with any of " .,:{}-\n\t":
     22                literally copy that character into the translation
     23        else
     24                find tuple that matches most characters of text
     25                translate this part of the text using that best match
     26}}}