From f706e549b53e12f4d96d7d7f272cbfa3cc6af239 Mon Sep 17 00:00:00 2001 From: Max Tkachenko Date: Wed, 15 Feb 2023 00:44:08 +0300 Subject: [PATCH] Update Ranker.js --- src/tags/control/Ranker.js | 46 -------------------------------------- 1 file changed, 46 deletions(-) diff --git a/src/tags/control/Ranker.js b/src/tags/control/Ranker.js index 20bc4bc63..8316b15b7 100644 --- a/src/tags/control/Ranker.js +++ b/src/tags/control/Ranker.js @@ -30,52 +30,6 @@ const RankerItemModel = types }, })); -/** - * The `Ranker` tag is used to rank the results from models. This tag uses the "prediction" field from a labeling task instead of the "data" field to display content for labeling on the interface. Carefully structure your labeling tasks to work with this tag. See [import pre-annotated data](../guide/predictions.html). - * - * Use with the following data types: text. - * - * The Ranker tag renders a given list of strings and allows you to drag and reorder them. - * To see this tag in action: - * 1. Save the example JSON below as a file called example_ranker_tag.json. - * 2. Upload it as a task on the Label Studio UI. - * 3. Set up a project with the given labeling configuration. - * - * @example - * - * - * - * - * - * @example - * - * [{ - * "data": { - * "text": "Some text for the ranker tag" - * }, - * "predictions": [{ - * "model_version": "1564027355", - * "result": [{ - * "from_name": "ranker-1", - * "to_name": "ranker-1", - * "type": "ranker", - * "value": { - * "items": ["abc", "def", "ghk", "more more more", "really long text"], - * "weights": [1.00, 0.78, 0.75, 0.74, 0.74], - * "selected": [false, false, false, false, false] - * } - * }], - * "score": 1.0 - * }] - * }] - * @name Ranker - * @meta_title Ranker Tag for Model Ranking - * @meta_description Customize Label Studio with the Ranker tag to rank the predictions from different models to rank model quality in your machine learning and data science projects. - * @param {string} name - Name of group - * @param {y|x} [axis=y] - Whether to use a vertical or horizantal axis direction for ranking - * @param {x|y} lockAxis - Lock axis - * @param {string} sortedHighlightColor - Sorted color in HTML color name - */ const TagAttrs = types.model({ axis: types.optional(types.enumeration(['x', 'y']), 'y'), lockaxis: types.maybeNull(types.enumeration(['x', 'y'])),