示例#1
0
 private static IEnumerable <ITextAlignmentCollection> GetAlignmentCollections(IEnumerable <string> filePatterns)
 {
     foreach ((string id, string fileName) in CorporaHelpers.GetFiles(filePatterns))
     {
         yield return(new TextFileTextAlignmentCollection(id, fileName));
     }
 }
 private static IEnumerable <IText> GetTexts(ITokenizer <string, int> wordTokenizer,
                                             IEnumerable <string> filePatterns)
 {
     foreach ((string id, string fileName) in CorporaHelpers.GetFiles(filePatterns))
     {
         yield return(new TextFileText(wordTokenizer, id, fileName));
     }
 }