|
| 1 | +// stub file to keep docs for HyperText object tag |
| 2 | + |
| 3 | +/** |
| 4 | + * The HyperText tag displays hypertext markup for labeling. Use for labeling HTML-encoded text and webpages for NER and NLP projects. |
| 5 | + * |
| 6 | + * Use with the following data types: HTML |
| 7 | + * @example |
| 8 | + * <!--Labeling configuration to label HTML content --> |
| 9 | + * <View> |
| 10 | + * <HyperText name="text-1" value="$text" /> |
| 11 | + * <Labels name="parts" toName="text-1"> |
| 12 | + * <Label value="Caption" /> |
| 13 | + * <Label value="Article" /> |
| 14 | + * <Label value="Author" /> |
| 15 | + * </Labels> |
| 16 | + * </View> |
| 17 | + * @example |
| 18 | + * <HyperText name="p1" value="<p>Some explanations <em>with style</em></p>" /> |
| 19 | + * @name HyperText |
| 20 | + * @regions HyperTextRegion |
| 21 | + * @meta_title Hypertext Tags for Hypertext Markup (HTML) |
| 22 | + * @meta_description Label Studio Hypertext Tags customize Label Studio for hypertext markup (HTML) for machine learning and data science projects. |
| 23 | + * @param {string} name Name of the element |
| 24 | + * @param {string} value Value of the element |
| 25 | + * @param {url|text} [valueType=text] Whether the text is stored directly in uploaded data or needs to be loaded from a URL |
| 26 | + * @param {boolean} [inline=false] Whether to embed HTML directly in Label Studio or use an iframe |
| 27 | + * @param {yes|no} [saveTextResult] Whether to store labeled text along with the results. By default, doesn't store text for `valueType=url` |
| 28 | + * @param {none|base64|base64unicode} [encoding] How to decode values from encoded strings |
| 29 | + * @param {boolean} [selectionEnabled=true] Enable or disable selection |
| 30 | + * @param {boolean} [clickableLinks=false] Whether to allow opening resources from links in the hypertext markup. |
| 31 | + * @param {string} [highlightColor] Hex string with highlight color, if not provided uses the labels color |
| 32 | + * @param {boolean} [showLabels] Whether or not to show labels next to the region; unset (by default) — use editor settings; true/false — override settings |
| 33 | + * @param {symbol|word|sentence|paragraph} [granularity] Control region selection granularity |
| 34 | + */ |
| 35 | +export const HyperTextModel = {}; |
0 commit comments