We index into the $$i^{th}$$ row first to get the $$i^{th}$$ training example (represented by parentheses), then the $$j^{th}$$ column to get the $$j^{th}$$ word (represented by the brackets).