Esempio n. 1
0
        public virtual ConstituencyTreeTextAnalysisResponse GetConstituencyTreeTextAnalysis(TextAnalysisRequest request)
        {
            try {
                var result = LinguisticRepository.GetConstituencyTreeTextAnalysis(request);

                return(result);
            } catch (Exception ex) {
                Logger.Error("LinguisticService.GetConstituencyTreeTextAnalysis failed", this, ex);
            }

            return(null);
        }
Esempio n. 2
0
 public virtual ConstituencyTreeTextAnalysisResponse GetConstituencyTreeTextAnalysis(TextAnalysisRequest request)
 {
     return(PolicyService.ExecuteRetryAndCapture400Errors(
                "LinguisticService.GetConstituencyTreeTextAnalysis",
                ApiKeys.LinguisticAnalysisRetryInSeconds,
                () =>
     {
         var result = LinguisticRepository.GetConstituencyTreeTextAnalysis(request);
         return result;
     },
                null));
 }