We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 45520bc commit a426393Copy full SHA for a426393
README.md
@@ -51,7 +51,7 @@ Create a UTF8-encoded `.cfg` file that contains your grammar, such as the follow
51
S -> NP VP (0.8) # specify probability between 0 and 1 by appending between parentheses
52
S -> NP (0.2)
53
NP -> Det N # probability defaults to 1.0
54
-NP -> Det Nom
+NP -> Det Nom # all rules for a given category must sum to 1, so the builder normalizes probabilities to ensure they sum to 1.0
55
Nom -> Adj N
56
VP → V # Use '->' or '→'
57
Det → the # probability defaults to 1.0
0 commit comments