How to use the prosodic.Line function in prosodic

To help you get started, we’ve selected a few prosodic examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github quadrismegistus / prosodic / treegrid / qphrase.py View on Github external
def __init__(self,parsestr,pgraph=None):
		self.parsestr=parsestr
		self.token=' '.join(parse2words(parsestr))
		self.parsed=p.Line(self.token)
		self.broken=self.parsed.broken
		#self.len_word=len(self.parsed.words())
		#self.len_syll=len(self.parsed.syllables())
		self.tokens=[]
		self.pgraph=pgraph