How to use the prosodic.lib.entity.being.networkx 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 / prosodic / lib / entity.py View on Github external
omm=''
	#omms=bool(int(prosodic.config['print_to_screen']))
	linelen=40
	lang=False
	printout=True
	pointsofcomparison=[]
	pass

"""
try:
	import networkx
	being.networkx=True
except ImportError:
	being.networkx=False
"""
being.networkx=False


class entity(being):	## this class, like the godhead, never instantiates, but is the Form and Archetype for all.
	## temp ###
	count=0 #eliminate!
	time=0	# for timing the parsers.. also eliminate
	###########

	stress_str2int={'P':1,'S':2,'U':0}
	stress_str2strikes={'P':'`','S':"'",'U':''}
	stress_int2strikes={0:'',1:"'",2:"`"}
	stress_float2str={1.0:'P',0.5:'S',0.0:'U'}
	weight_bool2str={True:'H',False:'L',None:'?'}

	## classes
	def __init__(self):
github quadrismegistus / prosodic / prosodic / lib / entity.py View on Github external
class being:
	persists=False
	excels=False
	om=''
	omm=''
	#omms=bool(int(prosodic.config['print_to_screen']))
	linelen=40
	lang=False
	printout=True
	pointsofcomparison=[]
	pass
	
try:
	import networkx
	being.networkx=True
except ImportError:
	being.networkx=False



class entity(being):	## this class, like the godhead, never instantiates, but is the Form and Archetype for all.	
	## temp ###
	count=0 #eliminate!
	time=0	# for timing the parsers.. also eliminate
	###########
	
	stress_str2int={'P':1,'S':2,'U':0}
	stress_str2strikes={'P':'`','S':"'",'U':''}
	stress_int2strikes={0:'',1:"'",2:"`"}
	stress_float2str={1.0:'P',0.5:'S',0.0:'U'}
	weight_bool2str={True:'H',False:'L',None:'?'}
github quadrismegistus / prosodic / prosodic / lib / entity.py View on Github external
persists=False
	excels=False
	om=''
	omm=''
	#omms=bool(int(prosodic.config['print_to_screen']))
	linelen=40
	lang=False
	printout=True
	pointsofcomparison=[]
	pass
	
try:
	import networkx
	being.networkx=True
except ImportError:
	being.networkx=False



class entity(being):	## this class, like the godhead, never instantiates, but is the Form and Archetype for all.	
	## temp ###
	count=0 #eliminate!
	time=0	# for timing the parsers.. also eliminate
	###########
	
	stress_str2int={'P':1,'S':2,'U':0}
	stress_str2strikes={'P':'`','S':"'",'U':''}
	stress_int2strikes={0:'',1:"'",2:"`"}
	stress_float2str={1.0:'P',0.5:'S',0.0:'U'}
	weight_bool2str={True:'H',False:'L',None:'?'}
	
	## classes