diff --git a/website/usage/_processing-pipelines/_custom-components.jade b/website/usage/_processing-pipelines/_custom-components.jade index a19246200..7603297a5 100644 --- a/website/usage/_processing-pipelines/_custom-components.jade +++ b/website/usage/_processing-pipelines/_custom-components.jade @@ -53,11 +53,11 @@ p class MyComponent(object): name = 'print_info' - def __init__(vocab, short_limit=10): + def __init__(self, vocab, short_limit=10): self.vocab = vocab self.short_limit = short_limit - def __call__(doc): + def __call__(self, doc): if len(doc) < self.short_limit: print("This is a pretty short document.") return doc