From 6bc9917a0ef8c0ece8ca8b0c05578f27eaecc073 Mon Sep 17 00:00:00 2001 From: Matthew Honnibal Date: Thu, 23 Nov 2017 11:47:20 +0100 Subject: [PATCH] Another small fix to component docs --- website/usage/_processing-pipelines/_custom-components.jade | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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