Esempio n. 1
0
 public TextChunk(string text, bool allowFuzzingMatching)
 {
     this.Text              = text;
     this.CharacterSpans    = StringBreaker.BreakIntoCharacterParts(text);
     this.SimilarityChecker = allowFuzzingMatching
         ? WordSimilarityChecker.Allocate(text, substringsAreSimilar: false)
         : null;
 }
Esempio n. 2
0
 private static IList <string> BreakIntoCharacterParts(string identifier)
 {
     return(PartListToSubstrings(identifier, StringBreaker.BreakIntoCharacterParts(identifier)));
 }