Changes between Version 1 and Version 2 of Translator


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

--

Legend:

Unmodified
Added
Removed
Modified
  • Translator

    v1 v2  
    11= Translator =
    22
    3 Translator is a tool to convert words and sentences S from one language ("A") to another language ("B"). The tool bases its translation on sentence pairs (A, B). It finds the best matching sentence in A and then returns the sentence B.
     3Translator is a tool to convert words and sentences S from one language ("A") to another language ("B"). The tool bases its translation on sentence pairs (A, B) that are stored in a database (usually a {{{.csv file}}}. It finds the best matching sentence in A and then returns the sentence B.
    44
    55The sentences in A and B can also contain variables. If S can be matched under an assignment of variables, then the translation is B with the same variables assigned. For example suppose we have a tuple ("Where did you meet [X]?","Waar heb je [X] ontmoet?"). To translate the sentence S="Where did you meet Jan?" it is noticed that S matches the first of the tuple under the assignment [X/Jan]. Therefore the translation becomes "Waar heb je Jan ontmoet?".
     
    1616
    1717==Fragment handling
    18 Another option of the translator is to translate fragments.
     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.