How to programmatically get target translation for a segment match in TM in Trados Studio 2022

1. What I am trying to achieve

1. Create project > Use File based TM and our Translation provider for translation. 

2. Fuzzy score is set to 70

3.  If fuzzy match above score “70” is found in TM for a sentence, then grab the target of this fuzzy match.

How can I get target for the fuzzy match programmatically in my code? 

2. what have you tried already?

1. I have already looked into 'Doing Translation Memory Lookups'. But it requires me to specify TM path.

However, I have already added TM during project creation and Trados has already done TM lookup, so I don't need to TM Lookup again get what has Trados has already done.

1. So, how do I programmatically get target of fuzzy match in TM already performed by Trados?

2. Do I need any specific setting during project creation to get target of fuzzy match in TM already performed by Trados?

emoji
Parents
  •  

    Thank you for your post. I am struggling to be sure if I fully understand your question: 

    How can I get target for the fuzzy match programmatically in my code? 

    I assume what you mean is, how do I get Trades Studio to automatically apply fuzzy matches from my TM to my project files?

    It sounds like you have all the right things in place; a TM which I assume has content in it as well as fuzzy match value set to 70%So to automate the translations you need to run a Batch Task,Pre-Translate. You can call this batch task in many places including project wizard and in the Editor View.

    Trados Studio interface showing the 'Batch Tasks' dropdown menu with 'Pre-translate Files' option highlighted, indicating the step to automate translations using a TM with a 70% fuzzy match.

    When running it, if your TM has translations that match your project files it will automatically populate the translations based on your 70% match.

    I hope this helps

    Lyds

    emoji


    Generated Image Alt-Text
    [edited by: Trados AI at 10:57 AM (GMT 0) on 29 Feb 2024]
Reply
  •  

    Thank you for your post. I am struggling to be sure if I fully understand your question: 

    How can I get target for the fuzzy match programmatically in my code? 

    I assume what you mean is, how do I get Trades Studio to automatically apply fuzzy matches from my TM to my project files?

    It sounds like you have all the right things in place; a TM which I assume has content in it as well as fuzzy match value set to 70%So to automate the translations you need to run a Batch Task,Pre-Translate. You can call this batch task in many places including project wizard and in the Editor View.

    Trados Studio interface showing the 'Batch Tasks' dropdown menu with 'Pre-translate Files' option highlighted, indicating the step to automate translations using a TM with a 70% fuzzy match.

    When running it, if your TM has translations that match your project files it will automatically populate the translations based on your 70% match.

    I hope this helps

    Lyds

    emoji


    Generated Image Alt-Text
    [edited by: Trados AI at 10:57 AM (GMT 0) on 29 Feb 2024]
Children