Exemple #1
0
 public static NameRecognizer GetInstance()
 {
     if (_single == null)
     {
         _single = new NameRecognizer();
     }
     return(_single);
 }
Exemple #2
0
        public List <string> GetNames(string contents)
        {
            string         notaryName = GetNotary(contents);
            NameRecognizer recognizer = NameRecognizer.GetInstance();
            List <string>  foundNames = recognizer.FindItems(contents);

            foundNames.Remove(notaryName);

            foundNames = recognizer.CleanNames(foundNames);

            return(foundNames);
        }