示例#1
0
 public static NotaryRecognizer GetInstance()
 {
     if (_single == null)
     {
         _single = new NotaryRecognizer();
     }
     return(_single);
 }
示例#2
0
        public string GetNotary(string contents)
        {
            NotaryRecognizer recognizer = NotaryRecognizer.GetInstance();

            int           notaryIndex       = contents.ToLower().IndexOf("NOTAR");
            bool          considerBeginning = notaryIndex >= 0 && notaryIndex < 100;
            List <string> foundNames        = recognizer.FindItems(contents, considerBeginning);

            foundNames = recognizer.CleanNotaryNames(foundNames);

            return(foundNames.Count > 0 ? foundNames[0] : "");
        }