Lucene.Net.Analysis.Synonym.SlowSynonymFilterFactory.GetSynList C# (CSharp) Method

GetSynList() private static method

private static GetSynList ( string str, string separator, TokenizerFactory tokFactory ) : IList>
str string
separator string
tokFactory Lucene.Net.Analysis.Util.TokenizerFactory
return IList>
        private static IList<IList<string>> GetSynList(string str, string separator, TokenizerFactory tokFactory)
        {
            IList<string> strList = SplitSmart(str, separator, false);
            // now split on whitespace to get a list of token strings
            IList<IList<string>> synList = new List<IList<string>>();
            foreach (string toks in strList)
            {
                IList<string> tokList = tokFactory == null ? SplitWS(toks, true) : SplitByTokenizer(toks, tokFactory);
                synList.Add(tokList);
            }
            return synList;
        }