No Term Recognition when using a Custom Terminology Provider

I'm building a custom terminology provider. I've got it to the state where I can search terms and show the search result's details in the Termbase Viewer panel.

But I'm unable to have terms in the source segment recognised as being present in the termbase.

For example, in my test project I have a source document containing only the text 'Hallo Welt'. Attached to this project is a file-based MultiTerm termbase with only the following entry:

Once the file is opened in Trados Studio the text in the source segment is recognised:

As can be seen, the text in the source segment is recognised (red line above the text) and the termbase entry is shown in the Term Recognition panel.

If I now remove that MultiTerm termbase from the project and hook up my own termbase in its place (via the custom terminology provider), I can show that 'Hello world'/'Hallo Welt' is in this termbase because I can search for it and receive the result...

The above screenshot also has the Termbase Viewer panel open to show that the result is from my terminology provider - the search result is also visible in the Termbase Search panel. But as can be seen, there's no red line in the source segment.

Here's almost the same screenshot, this time with an empty Term Recognition panel:

I know that the source segment is being searched for because it hits the expected breakpoint in my code. I also know that the search result is being returned from that method.

I've also tried the ExcelTerminology example plugin and it does exactly the same as mine - it only displays search results and doesn't indicate any hits in the source segments or the Term Recognition panel.

Can anyone explain why that search result is not shown in either the Term Recognition panel or with the addition of a red line above the source text?

Parents
  • Hi ,

    I am also working on a terminology provider and I get to the same issue as you. I have looked on the Excel Terminology but in that case the recognition is working fine. As I investigated in the code behind, I noticed that:
    1) When you are on an active segment, the Search() method is triggered.
    2) After the results are returned, then the method "public override IEntry GetEntry(int id)" is fired.
    3) The GetEntry(int id) method returns the recognized terms which are displayed in the grid and also the terms are underlined with the red line.
    In my terminology provider, only the Search() method is triggered and the "public override IEntry GetEntry(int id)" is not called anymore, so now I am now investigating what's the reason. (Probably you should also do a debug in your code and see if the "public override IEntry GetEntry(int id)" is called when you are on the Term Recognition tab and you navigate thorough segments).

    Once I will have an answer to this issue, I will let you know


    With kind regards,
    Florentina Caputa.

    With kind regards,

    Florentina Caputa

Reply
  • Hi ,

    I am also working on a terminology provider and I get to the same issue as you. I have looked on the Excel Terminology but in that case the recognition is working fine. As I investigated in the code behind, I noticed that:
    1) When you are on an active segment, the Search() method is triggered.
    2) After the results are returned, then the method "public override IEntry GetEntry(int id)" is fired.
    3) The GetEntry(int id) method returns the recognized terms which are displayed in the grid and also the terms are underlined with the red line.
    In my terminology provider, only the Search() method is triggered and the "public override IEntry GetEntry(int id)" is not called anymore, so now I am now investigating what's the reason. (Probably you should also do a debug in your code and see if the "public override IEntry GetEntry(int id)" is called when you are on the Term Recognition tab and you navigate thorough segments).

    Once I will have an answer to this issue, I will let you know


    With kind regards,
    Florentina Caputa.

    With kind regards,

    Florentina Caputa

Children