Sentence Similarity
sentence-transformers
Safetensors
Yue Chinese
bert
feature-extraction
Generated from Trainer
dataset_size:129371
loss:CachedGISTEmbedLoss
Eval Results (legacy)
text-embeddings-inference
Instructions to use hon9kon9ize/yue-embed with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use hon9kon9ize/yue-embed with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("hon9kon9ize/yue-embed") sentences = [ "query: is ampulla of vater part of the pancreas", "document: Ampulla of Vater The ampulla of Vater, also known as the hepatopancreatic ampulla or the hepatopancreatic duct, is formed by the union of the pancreatic duct and the common bile duct. The ampulla is specifically located at the major duodenal papilla.", "document: 抗凝加化疗;化疗", "document: Daylight saving time in Australia Daylight saving was first used in Australia during World War I, and was applied in all states. It was used again during the Second World War. A drought in Tasmania in 1967 led to the reintroduction of daylight saving in that state during the summer, and this was repeated every summer since then. In 1971, New South Wales, Victoria,[16] Queensland, South Australia, and the Australian Capital Territory followed Tasmania by observing daylight saving. Western Australia and the Northern Territory did not. Queensland abandoned daylight saving time in 1972.[17]" ] embeddings = model.encode(sentences) similarities = model.similarity(embeddings, embeddings) print(similarities.shape) # [4, 4] - Notebooks
- Google Colab
- Kaggle
Update README.md
Browse files
README.md
CHANGED
|
@@ -929,7 +929,7 @@ Then you can load this model and run inference.
|
|
| 929 |
from sentence_transformers import SentenceTransformer
|
| 930 |
|
| 931 |
# Download from the 🤗 Hub
|
| 932 |
-
model = SentenceTransformer("
|
| 933 |
# Run inference
|
| 934 |
sentences = [
|
| 935 |
'query: when did england change from fahrenheit to celsius',
|
|
|
|
| 929 |
from sentence_transformers import SentenceTransformer
|
| 930 |
|
| 931 |
# Download from the 🤗 Hub
|
| 932 |
+
model = SentenceTransformer("hon9kon9ize/yue-embed")
|
| 933 |
# Run inference
|
| 934 |
sentences = [
|
| 935 |
'query: when did england change from fahrenheit to celsius',
|