Advertisement
Guest User

Untitled

a guest
Apr 19th, 2018
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.85 KB | None | 0 0
  1. List<string[]> threeGrams = new List<string[]>();
  2. int wordCount = nonEmptyWords.Count;
  3. for (int i = 0; i < wordCount - 2; i++)
  4. {
  5. string[] threeGram = new string[3];
  6. for (int j = 0; j < 3; j++)
  7. {
  8. threeGram[j] = nonEmptyWords[i + j];
  9. }
  10.  
  11. threeGrams.Add(threeGram);
  12. }
  13.  
  14. foreach (string[] threeGram in threeGrams)
  15. {
  16. output.Set("MeetingId", meetingId);
  17. output.Set("ThreeGramWord1", threeGram[0]);
  18. output.Set("ThreeGramWord2", threeGram[1]);
  19. output.Set("ThreeGramWord3", threeGram[2]);
  20.  
  21. yield return output.AsReadOnly();
  22. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement