Skip to content

Commit 837e9dc

Browse files
committed
doc: adapted example so 'frog' variable isn't shadowed
In response to question by @roelsmeets
1 parent af3f513 commit 837e9dc

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

README.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -68,9 +68,9 @@ Example:
6868

6969
.. code:: python
7070
71-
import frog
71+
from frog import Frog, FrogOptions
7272
73-
frog = frog.Frog(frog.FrogOptions(parser=False))
73+
frog = Frog(FrogOptions(parser=False))
7474
output = frog.process_raw("Dit is een test")
7575
print("RAW OUTPUT=",output)
7676
output = frog.process("Dit is nog een test.")
@@ -124,14 +124,14 @@ used:
124124

125125
.. code:: python
126126
127-
frog = frog.Frog(frog.FrogOptions(parser=False), "/path/to/your/frog.cfg")
127+
frog = Frog(FrogOptions(parser=False), "/path/to/your/frog.cfg")
128128
129129
A third parameter, a dictionary, can be used to override specific configuration values (same syntax as Frog's
130130
``--override`` option), you may want to leave the second parameter empty if you want to load the default configuration:
131131

132132
.. code:: python
133133
134-
frog = frog.Frog(frog.FrogOptions(parser=False), "", { "tokenizer.rulesFile": "tokconfig-nld-twitter" })
134+
frog = Frog(FrogOptions(parser=False), "", { "tokenizer.rulesFile": "tokconfig-nld-twitter" })
135135
136136
FoLiA support
137137
------------------

0 commit comments

Comments
 (0)