code: def get_subwords(self, word, on_unicode_error='strict'):
          
          pair = self.f.getSubwords(word, on_unicode_error)
          return pair[0], np.array(pair[1])
docs: Given a word, get the subwords and their indicies.