Created
July 30, 2019 15:00
-
-
Save billpku/2f0a136f79aa4631832369d8d0d38205 to your computer and use it in GitHub Desktop.
Revisions
-
billpku created this gist
Jul 30, 2019 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,3 @@ # Real token mask is 1,pad token(meaning a place holder for the empty space) is 0 attention_masks = [[int(i>0) for i in ii] for ii in input_ids] attention_masks[0];