def pad_seq(dataset, field, max_len, symbol):
	"""
	pad sequence to max_len with symbol
	"""
	n_records = len(dataset)
	for i in range(n_records):
		assert isinstance(dataset[i][field], list)
		while len(dataset[i][field]) < max_len:
			dataset[i][field].append(symbol)
	return dataset