<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def validate_word(self, word):
 """Returns True if `word` consists exhaustively of valid IPA segments Args: word (unicode):
 input word as Unicode IPA string Returns: bool: True if `word` can be divided exhaustively into IPA segments that exist in the database """

        while word:
            match = self.seg_regex.match(word)
            if match:
                word = word[len(match.group(0)):]
            else:
                # print('{}\t->\t{}\t'.format(orig, word).encode('utf-8'), file=sys.stderr)
                return False
        return True