Beispiel #1
0
        private static IDictionary <Token, KnownPerson> GetKnownPersons(IEnumerable <Token> tokens)
        {
            var results = new Dictionary <Token, KnownPerson>();

            foreach (var token in tokens)
            {
                var knownPerson = KnownPersonSearcher.Search(Person.Parse(token.LowerText));
                if (knownPerson != null)
                {
                    results.Add(token, knownPerson);
                }
            }

            return(results);
        }
Beispiel #2
0
 private static bool CheckIsNominativeKnownLastName(string lastName)
 {
     return(KnownPersonSearcher.SearchByLastName(lastName).Any(r => r.Case == @"Nominative"));
 }