def word_frequencies_from_file_to_dict(self, filename):
	"""
	Returns a dictionary with the frequencies
	of the words occurring on file with name.
	"""
	file = open(filename, 'r')
	result = {}
	while True:
		line = file.readline()
		if line == '':
			break
		words = line.split(' ')
		for word in words:
			if word in result:
				result[word] += 1
			else:
				result[word] = 1
	file.close()
	return result