Skip to content

Commit 24eaa9e

Browse files
Added docstring to spacy vectorizers
1 parent 0f127fa commit 24eaa9e

1 file changed

Lines changed: 14 additions & 2 deletions

File tree

turftopic/vectorizers/spacy.py

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,13 @@
1414

1515

1616
class NounPhraseCountVectorizer(CountVectorizer):
17-
"""Extracts Noun phrases from text using SpaCy."""
17+
"""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+
"""
1824

1925
def __init__(
2026
self,
@@ -81,7 +87,13 @@ def build_tokenizer(self):
8187

8288

8389
class LemmaCountVectorizer(CountVectorizer):
84-
"""Extracts lemmata from text using SpaCy."""
90+
"""Extracts lemmata from text using SpaCy.
91+
92+
Parameters
93+
----------
94+
nlp: spacy.Language or str, default "en_core_web_sm"
95+
A Spacy pipeline or its name.
96+
"""
8597

8698
def __init__(
8799
self,

0 commit comments

Comments
 (0)