private async Task <AnalysisResponseItem> AnalyseAsync(ConfiguredAnalysisRequestItem item, CancellationToken cancellationToken) { var analysisResponse = new AnalysisResponseItem { Id = item.Id, SmallTalksAnalysis = await _smallTalksDetector.DetectAsync(item.Text, item.Configuration), DateTimeDectecteds = await DetectDateAsync(item, cancellationToken), }; return(analysisResponse); }
public Task <SmallTalks.Core.Models.Analysis> AnalyzeAsync(string input, InformationLevel informationLevel = default) { return(_smallTalksDetector.DetectAsync(input, new SmallTalksPreProcessingConfiguration { ToLower = true, UnicodeNormalization = true, InformationLevel = informationLevel })); }