Zero full matches for Japanese and Chinese with API, not with Trados client

We have had a few instances where the analyse result generates a log with zero full matches for Japanese and Chinese when the log is created using the API. When the log is created with the Trados client it generates full matches.

For other languages the number of full matches is the same when using the API or the client.

This has started since we updated to Trados 2022. It seems to be the case only for languages without spaces.

Has this already been noticed by someone else?

emoji
  • Here some more info, I checked the logs and verified the same files were used

    Here is info concerning the taks done by API:

    <taskInfo taskId="xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" runAt="20/09/2022 15:57:31" runTime="15 seconds">
    <project name="2022-3736" number="xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" dueDate="20/09/2023 15:54:54"/>
    <language lcid="1041" name="Japanese (Japan)"/>
    <tm name="work_JA.sdltm"/>
    <settings reportInternalFuzzyLeverage="yes" reportLockedSegmentsSeparately="no" reportCrossFileRepetitions="yes" minimumMatchScore="70" searchMode="bestWins" missingFormattingPenalty="0" differentFormattingPenalty="1" multipleTranslationsPenalty="0" autoLocalizationPenalty="0" textReplacementPenalty="0" alignmentPenalty="0" characterWidthDifferencePenaltyEnabled="yes" characterWidthDifferencePenalty="1" enableFuzzyMatchRepair="no" enableMtFuzzyMatchRepair="no" fullRecallMatchedWords="2" partialRecallMatchedWords="n/a" fullRecallSignificantWords="2" partialRecallSignificantWords="n/a"/>
    </taskInfo>

    task done by client:

    <taskInfo taskId="xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" runAt="21/09/2022 10:48:04" runTime="1 minutes, 16 seconds">
    <project name="-2022-3736" number="xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" dueDate="20/09/2023 15:54:54"/>
    <language lcid="1041" name="Japanese (Japan)"/>
    <tm name="work_JA.sdltm"/>
    <settings reportInternalFuzzyLeverage="yes" reportLockedSegmentsSeparately="no" reportCrossFileRepetitions="yes" minimumMatchScore="70" searchMode="bestWins" missingFormattingPenalty="0" differentFormattingPenalty="1" multipleTranslationsPenalty="0" autoLocalizationPenalty="0" textReplacementPenalty="0" alignmentPenalty="0" characterWidthDifferencePenaltyEnabled="yes" characterWidthDifferencePenalty="1" enableFuzzyMatchRepair="no" enableMtFuzzyMatchRepair="no" fullRecallMatchedWords="2" partialRecallMatchedWords="n/a" fullRecallSignificantWords="2" partialRecallSignificantWords="n/a"/>
    </taskInfo>

    Total results by API (exact segments count is ZERO)

    <batchTotal>
    <analyse>
    <perfect segments="0" words="0" characters="0" placeables="0" tags="0" repairWords="0" fullRecallWords="0" partialRecallWords="0"/>
    <inContextExact segments="1" words="1" characters="4" placeables="0" tags="0" repairWords="0" fullRecallWords="0" partialRecallWords="0"/>
    <exact segments="0" words="0" characters="0" placeables="0" tags="0" repairWords="0" fullRecallWords="0" partialRecallWords="0"/>
    <locked segments="0" words="0" characters="0" placeables="0" tags="0" repairWords="0" fullRecallWords="0" partialRecallWords="0"/>
    <crossFileRepeated segments="37" words="66" characters="420" placeables="0" tags="0" repairWords="0" fullRecallWords="0" partialRecallWords="0"/>
    <repeated segments="23" words="116" characters="614" placeables="14" tags="14" repairWords="0" fullRecallWords="3" partialRecallWords="0"/>
    <total segments="415" words="2629" characters="14025" placeables="151" tags="151" repairWords="0" fullRecallWords="152" partialRecallWords="0"/>
    <new segments="264" words="1795" characters="9605" placeables="77" tags="77" repairWords="0" fullRecallWords="67" partialRecallWords="0"/>
    <fuzzy min="50" max="74" segments="2" words="14" characters="70" placeables="1" tags="1" repairWords="0" fullRecallWords="3" partialRecallWords="0"/>
    <fuzzy min="75" max="84" segments="9" words="70" characters="366" placeables="22" tags="22" repairWords="0" fullRecallWords="21" partialRecallWords="0"/>
    <fuzzy min="85" max="94" segments="16" words="131" characters="710" placeables="11" tags="11" repairWords="0" fullRecallWords="43" partialRecallWords="0"/>
    <fuzzy min="95" max="99" segments="8" words="94" characters="419" placeables="6" tags="6" repairWords="0" fullRecallWords="13" partialRecallWords="0"/>
    <internalFuzzy min="50" max="74" segments="6" words="23" characters="138" placeables="2" tags="2" repairWords="0" fullRecallWords="0" partialRecallWords="0"/>
    <internalFuzzy min="75" max="84" segments="23" words="132" characters="758" placeables="11" tags="11" repairWords="0" fullRecallWords="2" partialRecallWords="0"/>
    <internalFuzzy min="85" max="94" segments="15" words="133" characters="679" placeables="6" tags="6" repairWords="0" fullRecallWords="0" partialRecallWords="0"/>
    <internalFuzzy min="95" max="99" segments="11" words="54" characters="242" placeables="1" tags="1" repairWords="0" fullRecallWords="0" partialRecallWords="0"/>
    </analyse>
    </batchTotal>

    Total results by client (exact segment count is NONE ZERO)

    <batchTotal>
    <analyse>
    <perfect segments="0" words="0" characters="0" placeables="0" tags="0" repairWords="0" fullRecallWords="0" partialRecallWords="0"/>
    <inContextExact segments="18" words="98" characters="537" placeables="2" tags="2" repairWords="0" fullRecallWords="0" partialRecallWords="0"/>
    <exact segments="126" words="424" characters="2402" placeables="8" tags="8" repairWords="0" fullRecallWords="0" partialRecallWords="0"/>
    <locked segments="0" words="0" characters="0" placeables="0" tags="0" repairWords="0" fullRecallWords="0" partialRecallWords="0"/>
    <crossFileRepeated segments="7" words="23" characters="112" placeables="0" tags="0" repairWords="0" fullRecallWords="3" partialRecallWords="0"/>
    <repeated segments="12" words="92" characters="490" placeables="14" tags="14" repairWords="0" fullRecallWords="3" partialRecallWords="0"/>
    <total segments="415" words="2629" characters="14025" placeables="151" tags="151" repairWords="0" fullRecallWords="319" partialRecallWords="0"/>
    <new segments="99" words="862" characters="4519" placeables="37" tags="37" repairWords="0" fullRecallWords="137" partialRecallWords="0"/>
    <fuzzy min="50" max="74" segments="16" words="72" characters="411" placeables="3" tags="3" repairWords="0" fullRecallWords="11" partialRecallWords="0"/>
    <fuzzy min="75" max="84" segments="31" words="180" characters="969" placeables="30" tags="30" repairWords="0" fullRecallWords="27" partialRecallWords="0"/>
    <fuzzy min="85" max="94" segments="45" words="372" characters="1972" placeables="23" tags="23" repairWords="0" fullRecallWords="82" partialRecallWords="0"/>
    <fuzzy min="95" max="99" segments="23" words="229" characters="1147" placeables="15" tags="15" repairWords="0" fullRecallWords="29" partialRecallWords="0"/>
    <internalFuzzy min="50" max="74" segments="3" words="14" characters="80" placeables="1" tags="1" repairWords="0" fullRecallWords="0" partialRecallWords="0"/>
    <internalFuzzy min="75" max="84" segments="17" words="111" characters="623" placeables="11" tags="11" repairWords="0" fullRecallWords="13" partialRecallWords="0"/>
    <internalFuzzy min="85" max="94" segments="12" words="106" characters="561" placeables="6" tags="6" repairWords="0" fullRecallWords="10" partialRecallWords="0"/>
    <internalFuzzy min="95" max="99" segments="6" words="46" characters="202" placeables="1" tags="1" repairWords="0" fullRecallWords="4" partialRecallWords="0"/>
    </analyse>
    </batchTotal>

    emoji
  • Hi  , I have added an item on our board to investigate the issue; we'll circle back when we have more info.

    Internal ref. no.: SDLCOM-3874

    emoji
  • Hi  , After reviewing this issue again this evening, I now confirm that we can successfully pretranslate the files for the language directions you mentioned above.  I have prepared a sample project that you can use to test on your environment, download/clone from here: Project Automation sample (2022)

    tks also to  for his outstanding support with investigating the issue from the Studio implementation.

    Setup / Run

    • The developer should open the sample project (mentioned above) in Visual Studio 2019 or 2022 as Administrator
    • Update the TODO variables from the Program.cs file
    • Compile the project. Note: the executable will be built into the relevant Trados Studio installation directory.
    • Run/Debug the project from VS, or from the command line prompt...

    Example:

    // TODO: Set location where to find the source files
    var sourceFilesDirectory = @"c:\temp\source files folder";
    
    // TODO: Set location for the project output folder... projects will be created here in sub-folders
    var projectsDirectory = @"c:\temp\projects";
    if (!Directory.Exists(projectsDirectory))
    {
        Directory.CreateDirectory(projectsDirectory);
    }
    
    // TODO: Set the source and target language combination
    var sourceLanguage = "en-US";
    var targetLanguage = "it-IT";
    
    // TODO: Provide the memory resource, Path etc..
    var memory = new MemoryResource
    {
        Path = @"C:\temp\mytm.sdltm"
    };
    
    CreateProject(sourceFilesDirectory, projectsDirectory, sourceLanguage, targetLanguage, memory);

    emoji
  • Hello,

    I tried to code on a small example project and it worked. I'm now trying to find what is wrong with my own code (the code I'm using has been used for many years on Japanase without problem). Do you have any idea where I should look. As my code looks very similar.

    Thank you

    emoji