Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- List<string[]> threeGrams = new List<string[]>();
- int wordCount = nonEmptyWords.Count;
- for (int i = 0; i < wordCount - 2; i++)
- {
- string[] threeGram = new string[3];
- for (int j = 0; j < 3; j++)
- {
- threeGram[j] = nonEmptyWords[i + j];
- }
- threeGrams.Add(threeGram);
- }
- foreach (string[] threeGram in threeGrams)
- {
- output.Set("MeetingId", meetingId);
- output.Set("ThreeGramWord1", threeGram[0]);
- output.Set("ThreeGramWord2", threeGram[1]);
- output.Set("ThreeGramWord3", threeGram[2]);
- yield return output.AsReadOnly();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement