Update README.md
Browse files
README.md
CHANGED
@@ -70,5 +70,18 @@ sentences_b = ['你怎么样','我吃了一个苹果','你过的好吗','你还
|
|
70 |
'你好吗','你现在好吗','你好个鬼']
|
71 |
similarities = model.similarity(sentences_a, sentences_b)
|
72 |
print(similarities)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
73 |
```
|
74 |
|
|
|
70 |
'你好吗','你现在好吗','你好个鬼']
|
71 |
similarities = model.similarity(sentences_a, sentences_b)
|
72 |
print(similarities)
|
73 |
+
# [(1.0, '你好吗'),
|
74 |
+
# (0.9324, '你好不好'),
|
75 |
+
# (0.8945, '你好不好呢'),
|
76 |
+
# (0.8845, '你还好吗'),
|
77 |
+
# (0.8382, '你现在好吗'),
|
78 |
+
# (0.8072, '你过的好吗'),
|
79 |
+
# (0.7648, '你怎么样'),
|
80 |
+
# (0.6736, '你'),
|
81 |
+
# (0.5706, '你吃饭了吗'),
|
82 |
+
# (0.5417, '你好个鬼'),
|
83 |
+
# (0.3747, '我好开心啊'),
|
84 |
+
# (0.0777, '我不开心'),
|
85 |
+
# (0.0624, '我吃了一个苹果')]
|
86 |
```
|
87 |
|