Setting threashold for fuzzy search results over MultiTerm Termbases

Hi,

I am trying to give my language provider plugin access to the termbases. 

The only way I found to access the entries of termabes is via search in a Sdl.MultiTerm.TMO.Interop.Termbase.

After loading the termbase I am initializing a search with

TermbaseSearch search = termbase.Search;
search.MaximumHits = 10;
search.FuzzySearch = true;
search.SourceIndex = someSourceLanguage;

And then I search via

HitTerms oHits = search.Execute();

But I did not find a way to set the threashold for the fuzzy search.
My goal is to find terms that are similar e.g. plural form of a term. But i do not want to get terms that are really different from my search term. At the moment this is the case. I have an entry in a termbase for the german word "Leiden" but it also finds this term when I search for "denn" or "denen". 
Is there an easy way to set the threshold? 

If not, could you recommend something to achieve my goal? I am not set on using the termbase search i can use something else.

Best,

Lukas

Parents Reply
  • I tried to edit my answer but i am probably too late.  

    I added the Sdl.Terminology.TerminologyProver.Core dll to my project dependencies and I can get the TerminilogyProviderManager.Instance as you described.
    Wwhen I try to get the TerminologyProvider for a termbase it throws a MissingTerminologyProviderException.

    I get the paths from 

     List<Sdl.ProjectAutomation.Core.Termbase> termbases = SdlTradosStudio.Application.GetController<ProjectsController>().CurrentProject.GetTermbaseConfiguration().Termbases;
     
     foreach (Sdl.ProjectAutomation.Core.Termbase termbase in termbases) {
        if (termBase is LocalTermbase localTermbase && File.Exists(localTermbase.FilePath))
        {
            string filepath = localTermbase.FilePath;
        }
        
     }
     

    Then i create a new Uri with each paths and try to get the TerminologyProvider. But then the excpetion is thrown.

    I am developing a TranslationProviderPlugin if that matters? 

Children
No Data