public PunctuationFactory(SeparatorContainer separatorContainer) { this.cachedItems = new Dictionary <string, ISentenceItem>(); foreach (var c in separatorContainer.All()) { this.cachedItems.Add(c, new Punctuation(c)); } }
public PunctuationFactory(SeparatorContainer separatorContainer) { this.cachedItems = new Dictionary<string, ISentenceItem>(); foreach (var c in separatorContainer.All()) { this.cachedItems.Add(c, new Punctuation(c)); } }
public Parser(SeparatorContainer separatorContainer) { this.SeparatorContainer = separatorContainer; this.WordFactory = new WordFactory(); this.PunctuationFactory = new PunctuationFactory(this.SeparatorContainer); }