(self, sents)
return [[[self.char2id.get(c, self.char_unk) for c in ("{" + w + "}")] for w in s] for s in sents]
Convert list of sentences of words into list of list of list of character indices.
        @param sents (list[list[str]]): sentence(s) in words
        @return word_ids (list[list[list[int]]]): sentence(s) in indices
Convert list of sentences of words into list of list of list of character indices.
Convert list of sentences of words into list of list of list of character indices .
def words2charindices(self, sents):
        """ Convert list of sentences of words into list of list of list of character indices.
        @param sents (list[list[str]]): sentence(s) in words
        @return word_ids (list[list[list[int]]]): sentence(s) in indices
        """
        return [[[self.char2id.get(c, self.char_unk) for c in ("{" + w + "}")] for w in s] for s in sents]
def words2charindices ( self , sents ) : return [ [ [ self . char2id . get ( c , self . char_unk ) for c in ( "{" + w + "}" ) ] for w in s ] for s in sents ]