Exemplo n.º 1
0
 public static CompanyRecognizer GetInstance()
 {
     if (_single == null)
     {
         _single = new CompanyRecognizer();
     }
     return(_single);
 }
Exemplo n.º 2
0
        public List <string> GetCompanyNames(string contents)
        {
            CompanyRecognizer recognizer = CompanyRecognizer.GetInstance();
            List <string>     foundNames = recognizer.FindItems(contents);

            foundNames = recognizer.CleanNames(foundNames);

            return(foundNames);
        }