diprism / fggs

Factor Graph Grammars in Python
MIT License
13 stars 3 forks source link

Return weights in a dictionary that contains the symbolic names. #182

Closed chihyang closed 2 months ago

chihyang commented 2 months ago

This solves issues #181 and #141. This is not enabled by default so that current test cases won't be influenced. If -p is passed, the output will be a dictionary like {"False":0, "True":0}. Otherwise the weight is still a list like [0, 0].