Skip to content
Snippets Groups Projects
Commit 7a344acf authored by Olivier Grisel's avatar Olivier Grisel
Browse files

ENH: implement __repr__ for DefaultPreprocessor so that estimators __repr__ looks prettier

parent 13192793
Branches
Tags
No related merge requests found
...@@ -68,6 +68,9 @@ class DefaultPreprocessor(object): ...@@ -68,6 +68,9 @@ class DefaultPreprocessor(object):
def preprocess(self, text): def preprocess(self, text):
return strip_accents(strip_tags(text.lower())) return strip_accents(strip_tags(text.lower()))
def __repr__(self):
return "DefaultPreprocessor()"
DEFAULT_PREPROCESSOR = DefaultPreprocessor() DEFAULT_PREPROCESSOR = DefaultPreprocessor()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment