Skip to content

Commit aef7260

Browse files
committed
Add a hopefully useful comment
1 parent 51d1ba8 commit aef7260

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

stanza/models/tokenization/data.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -403,6 +403,11 @@ def __len__(self):
403403
return len(self.data)
404404

405405
def __getitem__(self, index):
406+
# This will return a single sample
407+
# np: index in character map
408+
# np: tokenization label
409+
# np: features
410+
# list: original text as one length strings
406411
return self.dataset.para_to_sentences(self.data[index])
407412

408413
def unsort(self, arr):

0 commit comments

Comments
 (0)