<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def gen_ipa_data(self):
 		""" 		Generator for iterating over the IPA strings found in the dataset file. 		Yields the IPA data string paired with the respective line number. 		"""

		dialect = self.get_dialect()
		f = self._open()

		try:
			if dialect:
				for res in self._gen_csv_data(f, dialect):
					yield res
			else:
				for res in self._gen_txt_data(f):
					yield res

		finally:
			f.close()