public IEnumerable <DictionaryTerm> GetTerms(ITermMatcher matcher)
 {
     foreach (var term in dictionary.Match(matcher.ToDfaMatcher())
              .Select(p => new string(p.ToArray())))
     {
         yield return(GetTerm(term));
     }
 }
Ejemplo n.º 2
0
        public IEnumerable <DictionaryTerm> GetTerms(ITermMatcher matcher)
        {
            var decodingMatcher = encoding.CreateMatcher(matcher.ToDfaMatcher(), maxTokenByteLength);

            foreach (var term in dictionary.Match(decodingMatcher)
                     .Select(p => encoding.GetString(p.ToArray())))
            {
                yield return(GetTerm(term));
            }
        }