public virtual BreakIntoWordsResponse BreakIntoWords(WebLMModelOptions model, string text, int order = 5, int maxNumOfCandidatesReturned = 5) { return(PolicyService.ExecuteRetryAndCapture400Errors( "WebLanguageModelService.BreakIntoWords", ApiKeys.WebLMRetryInSeconds, () => { var result = WebLanguageModelRepository.BreakIntoWords(model, text, order, maxNumOfCandidatesReturned); return result; }, null)); }
public virtual BreakIntoWordsResponse BreakIntoWords(WebLMModelOptions model, string text, int order = 5, int maxNumOfCandidatesReturned = 5) { try { var result = WebLanguageModelRepository.BreakIntoWords(model, text, order, maxNumOfCandidatesReturned); return(result); } catch (Exception ex) { Logger.Error("WebLanguageModelService.BreakIntoWords failed", this, ex); } return(null); }