From e0baa4aa0781a4c1ccf3c5213fe3efacaf93907b Mon Sep 17 00:00:00 2001 From: Jael Gu Date: Wed, 1 Feb 2023 11:20:18 +0800 Subject: [PATCH] Update readme Signed-off-by: Jael Gu --- README.md | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) diff --git a/README.md b/README.md index 74c9ebf..af568c3 100644 --- a/README.md +++ b/README.md @@ -17,9 +17,8 @@ This operator is implemented with pre-trained models from [Sentence Transformers Use the pre-trained model "all-MiniLM-L12-v2" to generate a text embedding for the sentence "This is a sentence.". -*Write a same pipeline with explicit inputs/outputs name specifications:* +*Write a pipeline with explicit inputs/outputs name specifications:* -- **option 1 (towhee>=0.9.0):** ```python from towhee.dc2 import pipe, ops, DataCollection @@ -34,18 +33,6 @@ DataCollection(p('This is a sentence.')).show() -- **option 2:** - -```python -import towhee - -( - towhee.dc['sentence'](['This is a sentence.']) - .sentence_embedding.sbert['sentence', 'vec'](model_name='all-MiniLM-L12-v2') - .show() -) -``` -
## Factory Constructor