Skip to content

Commit beff5ac

Browse files
author
Maarten
committed
update readme
1 parent 6a17ca8 commit beff5ac

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -42,19 +42,19 @@ You can use this project as a library in your Java application or as a standalon
4242

4343
Download [the latest JAR](https://github.com/digitalheir/java-probabilistic-earley-parser/releases/latest)
4444

45-
Create a UTF8-encoded `.cfg` file that contains your grammar, such as the following:
46-
45+
By default, the parser will assume that you distinguish non-terminals from terminals by capitalizing them. You can also add a custom category handler if you call the API from Java code.
46+
47+
Create a UTF8-encoded `.cfg` file that contains your grammar, such as the following:
4748

4849
```
4950
# grammar.cfg
5051
51-
S -> NP VP (1.0) # Use '->'
52+
S -> NP VP (1.0) # Use '->'
5253
NP → i (0.5) # or '→'
5354
VP → eat # probability defaults to 1.0
5455
```
5556

56-
By default, the parser will assume that you distinguish non-terminals from terminals by capitalizing them. You can also add a custom category handler if you call the API from Java code.
57-
57+
5858
Execute runnable jar on the terminal:
5959
```
6060
probabilistic-earley-parser-jar-with-dependencies.jar -i grammar.cfg -goal S I EAT

0 commit comments

Comments
 (0)