Skip to content

Commit f8a22e5

Browse files
author
Tom De Smedt
committed
fix german typo
1 parent 3a68f77 commit f8a22e5

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

examples/03-en/05-tagset.py

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,11 @@
2020
from pattern.it import parse as parse_it
2121
from pattern.nl import parse as parse_nl
2222

23-
print parse_de("die schwarze Katzen", chunks=False) # die/DT schwarze/JJ Katzen/NNS
24-
print parse_es("los gatos negros" , chunks=False) # los/DT gatos/NNS negros/JJ
25-
print parse_fr("les chats noirs" , chunks=False) # les/DT chats/NNS noirs/JJ
26-
print parse_it("i gatti neri" , chunks=False) # i/DT gatti/NNS neri/JJ
27-
print parse_nl("de zwarte katten" , chunks=False) # de/DT zwarte/JJ katten/NNS
23+
print parse_de("die schwarzen Katzen", chunks=False) # die/DT schwarze/JJ Katzen/NNS
24+
print parse_es("los gatos negros" , chunks=False) # los/DT gatos/NNS negros/JJ
25+
print parse_fr("les chats noirs" , chunks=False) # les/DT chats/NNS noirs/JJ
26+
print parse_it("i gatti neri" , chunks=False) # i/DT gatti/NNS neri/JJ
27+
print parse_nl("de zwarte katten" , chunks=False) # de/DT zwarte/JJ katten/NNS
2828
print
2929

3030
# In some cases, this means the original tagset is mapped to Penn Treebank:
@@ -34,9 +34,9 @@
3434
from pattern.es import PAROLE
3535
from pattern.nl import WOTAN
3636

37-
print parse_de("die schwarze Katzen", chunks=False, tagset=STTS)
38-
print parse_es("los gatos negros" , chunks=False, tagset=PAROLE)
39-
print parse_nl("de zwarte katten" , chunks=False, tagset=WOTAN)
37+
print parse_de("die schwarzen Katzen", chunks=False, tagset=STTS)
38+
print parse_es("los gatos negros" , chunks=False, tagset=PAROLE)
39+
print parse_nl("de zwarte katten" , chunks=False, tagset=WOTAN)
4040
print
4141

4242
# Not all languages are equally suited to Penn Treebank,
@@ -73,12 +73,12 @@
7373

7474
from pattern.text import parse
7575

76-
print parse("die schwarze Katzen", chunks=False, language="de", tagset=UNIVERSAL)
77-
print parse("the black cats" , chunks=False, language="en", tagset=UNIVERSAL)
78-
print parse("los gatos negros" , chunks=False, language="es", tagset=UNIVERSAL)
79-
print parse("les chats noirs" , chunks=False, language="fr", tagset=UNIVERSAL)
80-
print parse("i gatti neri" , chunks=False, language="it", tagset=UNIVERSAL)
81-
print parse("de zwarte katten" , chunks=False, language="nl", tagset=UNIVERSAL)
76+
print parse("die schwarzen Katzen", chunks=False, language="de", tagset=UNIVERSAL)
77+
print parse("the black cats" , chunks=False, language="en", tagset=UNIVERSAL)
78+
print parse("los gatos negros" , chunks=False, language="es", tagset=UNIVERSAL)
79+
print parse("les chats noirs" , chunks=False, language="fr", tagset=UNIVERSAL)
80+
print parse("i gatti neri" , chunks=False, language="it", tagset=UNIVERSAL)
81+
print parse("de zwarte katten" , chunks=False, language="nl", tagset=UNIVERSAL)
8282
print
8383

8484
# This comes at the expense of (in this example) losing information about plural nouns (NNS => NN).

0 commit comments

Comments
 (0)