def import_stems():

	data = []
	with open('STEMLIST.GEN') as f:
		for line in f:

			if len( line[26:30].strip() ) > 0:
				n = line[26:30].strip().split(" ")
				for i, v in enumerate(n):
					try: 
						n[i] = int(v)
					except __HOLE__:
						pass

			data.append({
				'orth' : line[0:19].strip(),
				'pos' : line[19:26].strip(),
				'form' : line[26:45].strip(),
				'n' : n,
				'wid' : int(line[50:].strip())
				})

	with open('data.json', 'w') as out:
	    json.dump(data, out)

	return
dataset/ETHPy150Open segetes/open_words/open_words/format_data.py/import_stems