fictiveworks / CalyxSharp

Generative text processing for C# and Unity applications
Other
0 stars 0 forks source link

Make weighted branch productions accessible through the Grammar API #35

Closed maetl closed 1 year ago

maetl commented 1 year ago

Fixes #34 by adding various Dictionary<string, INumberThing> builder methods to the grammar, registry and rule classes.

I also noticed the WeightedBranch production didn’t implement the common interface, so I added that as well.

Tests are failing for an unrelated reason (sentence case filter is raising big questions about NLP vs basic string processing, I’ll get to that in a separate issue).