Changes between Version 1 and Version 2 of Translator
- Timestamp:
- 07/04/19 11:38:18 (5 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Translator
v1 v2 1 1 = Translator = 2 2 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.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) that are stored in a database (usually a {{{.csv file}}}. It finds the best matching sentence in A and then returns the sentence B. 4 4 5 5 The 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?". … … 16 16 17 17 ==Fragment handling 18 Another option of the translator is to translate fragments. 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.