Skip to content

Commit 92ad091

Browse files
committed
Properly initialize Portuguese corpus
1 parent 80bebde commit 92ad091

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

nltk/corpus/reader/plaintext.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ def __init__(self, *args, **kwargs):
168168
# override the `sent_tokenizer`.
169169
class PortugueseCategorizedPlaintextCorpusReader(CategorizedPlaintextCorpusReader):
170170
def __init__(self, *args, **kwargs):
171-
CategorizedCorpusReader.__init__(self, kwargs)
171+
CategorizedPlaintextCorpusReader.__init__(self, *args, **kwargs)
172172
kwargs["sent_tokenizer"] = PunktTokenizer("portuguese")
173173

174174

0 commit comments

Comments
 (0)