logo
Browse Source

Update

Signed-off-by: Jael Gu <mengjia.gu@zilliz.com>
main
Jael Gu 2 years ago
parent
commit
c872660777
  1. 12
      README.md
  2. BIN
      result.png

12
README.md

@ -27,11 +27,17 @@ to generate a text embedding for the sentence "Hello, world.".
*Write the pipeline*:
```python
import towhee
from towhee.dc2 import pipe, ops, DataCollection
towhee.dc(["Hello, world."]) \
.text_embedding.realm(model_name="google/realm-cc-news-pretrained-embedder")
p = (
pipe.input('text')
.map('text', 'vec', ops.text_embedding.realm(model_name="google/realm-cc-news-pretrained-embedder"))
.output('text', 'vec')
)
DataCollection(p('Hello, world.')).show()
```
<img src="./result.png" width="800px"/>
<br />

BIN
result.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.6 KiB

Loading…
Cancel
Save