From e38516bafe383a3498707659ddaa75f8bfae04c9 Mon Sep 17 00:00:00 2001 From: Daniel Robert Armstrong Date: Mon, 31 Oct 2022 06:05:03 -0500 Subject: [PATCH] remove config argument in portuguese example I was trying to run this code It gave me a ConfigValidationError: "spacy_wordnet -> lang extra fields not permitted", when I removed the config, it works. --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index dda9a2f..fa2f5b8 100644 --- a/README.md +++ b/README.md @@ -106,7 +106,7 @@ from spacy_wordnet.wordnet_annotator import WordnetAnnotator # Load an spacy model nlp = spacy.load('pt_core_news_sm') # Spacy 3.x -nlp.add_pipe("spacy_wordnet", after='tagger', config={'lang': nlp.lang}) +nlp.add_pipe("spacy_wordnet", after='tagger') # Spacy 2.x # nlp.add_pipe(WordnetAnnotator(nlp.lang), after='tagger') text = "Eu quero retirar 5.000 euros"