Skip to content

Commit a426393

Browse files
committed
Update readme
1 parent 45520bc commit a426393

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ Create a UTF8-encoded `.cfg` file that contains your grammar, such as the follow
5151
S -> NP VP (0.8) # specify probability between 0 and 1 by appending between parentheses
5252
S -> NP (0.2)
5353
NP -> Det N # probability defaults to 1.0
54-
NP -> Det Nom
54+
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
5555
Nom -> Adj N
5656
VP → V # Use '->' or '→'
5757
Det → the # probability defaults to 1.0

0 commit comments

Comments
 (0)