예제 #1
0
 public static DescriptionsManager GetInstance()
 {
     if (_single == null)
     {
         _single = new DescriptionsManager();
     }
     return(_single);
 }
예제 #2
0
        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));
        }