public static DescriptionsManager GetInstance() { if (_single == null) { _single = new DescriptionsManager(); } return(_single); }
public string GetIntent() { BankCustomerMessage comment = new BankCustomerMessage() { Contents = RawContents }; var prediction = _messagePredEngine.Predict(comment); string strIntent = prediction.TypeCode.ToString().ToLower(); return(DescriptionsManager.GetInstance().GetDescription(strIntent)); }