<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def get_subwords(self, word, on_unicode_error='strict'):
 """ Given a word, get the subwords and their indicies. """

        pair = self.f.getSubwords(word, on_unicode_error)
        return pair[0], np.array(pair[1])