From 400812d9b17ac1ad054a2f4105ffae32dc45f945 Mon Sep 17 00:00:00 2001 From: ines Date: Wed, 25 Oct 2017 22:17:11 +0200 Subject: [PATCH] Add add_label method to Pipe --- website/api/pipe.jade | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/website/api/pipe.jade b/website/api/pipe.jade index 66bdbcc62..c2afbde12 100644 --- a/website/api/pipe.jade +++ b/website/api/pipe.jade @@ -304,6 +304,21 @@ p Modify the pipe's model, to use the given parameter values. | The parameter values to use in the model. At the end of the | context, the original parameters are restored. ++h(2, "add_label") #{CLASSNAME}.add_label + +tag method + +p Add a new label to the pipe. + ++aside-code("Example"). + #{VARNAME} = #{CLASSNAME}(nlp.vocab) + #{VARNAME}.add_label('MY_LABEL') + ++table(["Name", "Type", "Description"]) + +row + +cell #[code label] + +cell unicode + +cell The label to add. + +h(2, "to_disk") #{CLASSNAME}.to_disk +tag method