We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0f127fa commit 24eaa9eCopy full SHA for 24eaa9e
1 file changed
turftopic/vectorizers/spacy.py
@@ -14,7 +14,13 @@
14
15
16
class NounPhraseCountVectorizer(CountVectorizer):
17
- """Extracts Noun phrases from text using SpaCy."""
+ """Extracts Noun phrases from text using SpaCy.
18
+
19
+ Parameters
20
+ ----------
21
+ nlp: spacy.Language or str, default "en_core_web_sm"
22
+ A Spacy pipeline or its name.
23
+ """
24
25
def __init__(
26
self,
@@ -81,7 +87,13 @@ def build_tokenizer(self):
81
87
82
88
83
89
class LemmaCountVectorizer(CountVectorizer):
84
- """Extracts lemmata from text using SpaCy."""
90
+ """Extracts lemmata from text using SpaCy.
91
92
93
94
95
96
85
97
86
98
99
0 commit comments