I would like to build an inverted index that stores for every word or word ID the document IDs, sentence numbers and positions in sentence as shown below.
wor