IntroCModelingLA/Code/MIParser.py
def scm(self, parse):
		"""Takes a parse of an utterance in list from and converts into a parenthesized string.
			 That is similar to the scheme code format used by the Penn Treebank parses.
		"""
		str = "("
		for x in parse:
			if isinstance(x, list):
				str += self.scm(x)
			else:
				str += x
		str += ")"
		return str
Takes a parse of an utterance in list from and converts into a parenthesized string.
			 That is similar to the scheme code format used by the Penn Treebank parses.
		
Takes a parse of an utterance in list from and converts into a parenthesized string.
That is similar to the scheme code format used by the Penn Treebank parses.
Takes a parse of an utterance in list from and converts into a parenthesized string . That is similar to the scheme code format used by the Penn Treebank parses .
def scm(self, parse):
		str = "("
		for x in parse:
			if isinstance(x, list):
				str += self.scm(x)
			else:
				str += x
		str += ")"
		return str
def scm ( self , parse ) : str = "(" for x in parse : if isinstance ( x , list ) : str += self . scm ( x ) else : str += x str += ")" return str
Takes a parse of an utterance in list from and converts into a parenthesized string.
Takes a parse of an utterance in list from and converts into a parenthesized string .
"""Takes a parse of an utterance in list from and converts into a parenthesized string.
			 That is similar to the scheme code format used by the Penn Treebank parses.
		"""
self
parse