From 5912292935e3e60075928d3a3fa9e90a95b03e3d Mon Sep 17 00:00:00 2001 From: Jael Gu Date: Sat, 2 Apr 2022 15:09:27 +0800 Subject: [PATCH] Update README Signed-off-by: Jael Gu --- README.md | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index 209ffb5..a097c51 100644 --- a/README.md +++ b/README.md @@ -39,19 +39,12 @@ dc.stream(["Hello, world."]) .show() ``` -## Factory Constructor - -Create the operator via the following factory method - -***ops.text_embedding.dpr(model_name)*** - - ## Factory Constructor Create the operator via the following factory method -***text_embedding.dpr(model_name="facebook/dpr-ctx_encoder-single-nq-base")*** +***text_embedding.dpr(model_name="")*** **Parameters:** @@ -59,7 +52,7 @@ Create the operator via the following factory method ​ The model name in string. The default value is "facebook/dpr-ctx_encoder-single-nq-base". -You can get the list of supported model names by calling `get_model_list` from [auto_transformers.py](https://towhee.io/text-embedding/transformers/src/branch/main/auto_transformers.py). +You can get the list of supported model names by calling `get_model_list` from [dpr.py](https://towhee.io/text-embedding/dpr/src/branch/main/dpr.py). ## Interface