예제 #1
0
        public DefiniteFormMapper(string configurablePath)
        {
            var parser = new Parser();

            parser.RegisterKeyword("names", reader => {
                ImpCountryNamesWithDefiniteForm = new HashSet <string>(ParserHelpers.GetStrings(reader));
            });
            parser.RegisterRegex(CommonRegexes.Catchall, ParserHelpers.IgnoreAndLogItem);
            parser.ParseFile(configurablePath);
        }