You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

17 lines
421 B

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

'''
# 安装向量化的包 # 断开VPN后执行安装包
conda activate rag
pip install text2vec torch torchvision torchaudio
# 安装完整版本(包含额外依赖)
pip install gensim[complete]
'''
from Util.EmbeddingUtil import *
sentences = ['如何更换花呗绑定银行卡', '花呗更改绑定银行卡']
for sentence in sentences:
x = text_to_embedding(sentence)
print(x)