pycl/Code/Charty/Charty.py
def structToStr(edges):
	"""Returns a string representation of the parse with
	   labled brackets."""
	tmpstr = ""
	for i in edges:
		if chart[i][5]:
			tmpstr = tmpstr + "[" + chart[i][3] + " " + structToStr(chart[i][5]) + " ] "
		else:
			tmpstr = tmpstr + "[" + chart[i][3] + " "
			for x in chart[i][4]:
				tmpstr = " ".join([tmpstr, x])
			tmpstr = tmpstr + " ] "
	return tmpstr
Returns a string representation of the parse with
	   labled brackets.
Returns a string representation of the parse with
labled brackets.
Returns a string representation of the parse with labled brackets .
def structToStr(edges):
	tmpstr = ""
	for i in edges:
		if chart[i][5]:
			tmpstr = tmpstr + "[" + chart[i][3] + " " + structToStr(chart[i][5]) + " ] "
		else:
			tmpstr = tmpstr + "[" + chart[i][3] + " "
			for x in chart[i][4]:
				tmpstr = " ".join([tmpstr, x])
			tmpstr = tmpstr + " ] "
	return tmpstr
def structToStr ( edges ) : tmpstr = "" for i in edges : if chart [ i ] [ 5 ] : tmpstr = tmpstr + "[" + chart [ i ] [ 3 ] + " " + structToStr ( chart [ i ] [ 5 ] ) + " ] " else : tmpstr = tmpstr + "[" + chart [ i ] [ 3 ] + " " for x in chart [ i ] [ 4 ] : tmpstr = " " . join ( [ tmpstr , x ] ) tmpstr = tmpstr + " ] " return tmpstr
Returns a string representation of the parse with
labled brackets.
Returns a string representation of the parse with labled brackets .
"""Returns a string representation of the parse with
	   labled brackets."""
edges