Пример #1
0
        public void SetUp()
        {
            var boringWords = new HashSet <string> {
                "foo", "barbar", "foofoo"
            };

            filter = new BoringWordFilter(boringWords);
        }
Пример #2
0
        public void SetUp()
        {
            text = "медведь cтоит на середина мост";

            var normalizer   = new WordNormalizer();
            var boringFilter = new BoringWordFilter(new HashSet <string> {
                "медведь"
            });
            var gramPartFilter = new GramPartsFilter(GramPartsEnum.Noun);

            analyzer = new WordsAnalyzer(normalizer, boringFilter, gramPartFilter);
        }