-
Notifications
You must be signed in to change notification settings - Fork 237
Open
Labels
documentationImprovements or additions to documentationImprovements or additions to documentation
Description
(Edit)
Add under Getting Started - Preprocessing a section that explains how to create a custom pipeline. This solution is easier than #9
Explain in the docstring of clean how to create a custom pipeline. Code example:
import texthero as hero
import pandas as pd
s = pd.Series(["is is a stopword"])
custom_set_of_stopwords = ['is']
pipeline = [
lambda s: hero.remove_stopwords(s, stopwords=custom_set_of_stopwords)
]
s.pipe(clean, pipeline=pipeline)
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
documentationImprovements or additions to documentationImprovements or additions to documentation