From 11a6a8b9abd78bf17d523af25b33074ec72e67f8 Mon Sep 17 00:00:00 2001 From: Han Xiao Date: Thu, 14 Oct 2021 13:59:20 +0200 Subject: [PATCH] docs: add interactive selector --- docs/index.md | 23 ++++++++++++++++------- 1 file changed, 16 insertions(+), 7 deletions(-) diff --git a/docs/index.md b/docs/index.md index 365ad80ad..a4ec1ad19 100644 --- a/docs/index.md +++ b/docs/index.md @@ -129,7 +129,7 @@ Learn more about {term}`labeled data`.
-:::{card} Finetuner usage +:::{card} Finetuner usage 1 Perfect! Now `embed_model` and `train_data` are given by you already, simply do: @@ -149,11 +149,14 @@ Learn more about {term}`Tuner`.
-:::{card} Finetuner usage +:::{card} Finetuner usage 2 Perfect! Now `embed_model` and `unlabeled_data` are given by you, you can use Finetuner to interactive label data and train `embed_model` as below: -```python +```{code-block} python +--- +emphasize-lines: 6 +--- import finetuner finetuner.fit( @@ -170,11 +173,14 @@ Learn more about {term}`Tuner` and {term}`Labeler`.
-:::{card} Finetuner usage +:::{card} Finetuner usage 3 You have a `general_model` but it is not yet for embedding. Luckily you provide some `labeled_data` for training, so simply do: -```python +```{code-block} python +--- +emphasize-lines: 6, 7 +--- import finetuner finetuner.fit( @@ -192,11 +198,14 @@ Learn more about {term}`Tailor` and {term}`Tuner`.
-:::{card} Finetuner usage +:::{card} Finetuner usage 4 You have a `general_model` but it is not yet for embedding. You only have unlabeled data which is not ready for training. But no worries, Finetuner can help you train an embedding model with interactive labeling on-the-fly: -```python +```{code-block} python +--- +emphasize-lines: 6, 7 +--- import finetuner finetuner.fit(