Sentence Similarity
sentence-transformers
Safetensors
bert
feature-extraction
dense
Generated from Trainer
dataset_size:268
loss:MultipleNegativesRankingLoss
text-embeddings-inference
Instructions to use Nicolas-Spettel/bird-qa-model with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use Nicolas-Spettel/bird-qa-model with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("Nicolas-Spettel/bird-qa-model") sentences = [ "Birdwatching for Beginners with Barbara Hannah Grufferman", "Bird that breeds in the Arctic and sub-Arctic and migrates to the Antarctic", "[birds chirping] [Discover Bird-Watching\nwith Barbara Hannah Grufferman] [♪ music and birds chirping ♪] We are in the park and I'm meeting up\nwith Birder Bob, who's an expert on birding. >> It's so nice to meet you.\n>> Yes. So, listen. I came prepared.\nI have my backpack. >> I even have a little notepad in there.\n>> All right. >> But what am I missing?\n>> Ah! Binoculars. >> May I place these over your head?\n>> Please do! Thank you. [laughing]\nLet's go! Vamos! So birding is becoming\nthe fastest-growing outdoor activity— [\"Birding Bob\" DeCandido, Ornithologist]\n>> Yes.\n>> —in the country. >> Why do you think that is? Why?\n>> Well, you can watch birds from inside looking outside\nat a bird feeder in your backyard, but you can also go to a local park. [♪ music ♪]\nHere we are in this giant woodland in the middle of the city. >> And it's beautiful.\n>> Yeah. And we're getting the clean air. We're looking up.\nWe can see birds up there. >> We can hear the cardinals singing.\n>> Here's one. They're migrating north along a flyway here. >> What's a flyway?\n>> Oh my goodness! A flyway is like an aerial path for birds, and oftentimes it's tied to a coastline\nor a mountain chain. So there are some very common birds around\nthat are easy to recognize. Here he is.\nHere's your red-bellied woodpecker right here. I'm going to use my binoculars.\n[laughing] Ah! It seems to me that with birding you could just—depending upon weather— put on a sweater, a jacket, whatever and get out there and walk and look\nand you'll be birding. >> Yes.\n>> Is it more complicated than that? Do I need more equipment? If you want to take it to the next level,\na pair of inexpensive binoculars and a book so you have a reference to go with. It's like a guidebook to birds. Yes, because this is your classroom, you know? >> Right.\n>> And if you can teach yourself, all the best way in the world to learn. [♪ music ♪] I'm going to do some special sounds. This is called pishing, which is\n[demonstrating pishing] There comes somebody on the left. Now, it seems counterintuitive\nthat you make sounds and birds come to the sound. >> Yes.\n>> But birds come in because they operate as a team. [demonstrating pishing]\nWhat a wonderful thing! Yes, yeah.\n[pishing] >> Look, here comes something.\n>> You never know what you're going to find\nas you turn a corner. And all you need\nis your eyes and ears and curiosity. Should I go closer? [birds chirping] Oh!\n[bird chirping] Hello, little cutie! [birds chirping] They like my chia energy bars.\n[laughing] [♪ music and birds chirping ♪] [♪ music and birds chirping ♪] This is such a great way to get outside,\nmove your body, and be with nature. Bird-watching is a great way\nto see the local area and then take it national. I loved my birding experience today. It’s—a new world\nhas been opened up for me really. So I think as of today\nI can call myself an official birder. [AARP, Real Possibilities]", "Teal is a dark cyan color. Its name comes from that of a bird, the Eurasian teal which has a similarly colored stripe on its head. The word is often used colloquially to refer to shades of cyan in general." ] embeddings = model.encode(sentences) similarities = model.similarity(embeddings, embeddings) print(similarities.shape) # [4, 4] - Notebooks
- Google Colab
- Kaggle
File size: 1,529 Bytes
32b138f | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 | {
"added_tokens_decoder": {
"0": {
"content": "[PAD]",
"lstrip": false,
"normalized": false,
"rstrip": false,
"single_word": false,
"special": true
},
"100": {
"content": "[UNK]",
"lstrip": false,
"normalized": false,
"rstrip": false,
"single_word": false,
"special": true
},
"101": {
"content": "[CLS]",
"lstrip": false,
"normalized": false,
"rstrip": false,
"single_word": false,
"special": true
},
"102": {
"content": "[SEP]",
"lstrip": false,
"normalized": false,
"rstrip": false,
"single_word": false,
"special": true
},
"103": {
"content": "[MASK]",
"lstrip": false,
"normalized": false,
"rstrip": false,
"single_word": false,
"special": true
}
},
"clean_up_tokenization_spaces": false,
"cls_token": "[CLS]",
"do_basic_tokenize": true,
"do_lower_case": true,
"extra_special_tokens": {},
"mask_token": "[MASK]",
"max_length": 128,
"model_max_length": 256,
"never_split": null,
"pad_to_multiple_of": null,
"pad_token": "[PAD]",
"pad_token_type_id": 0,
"padding_side": "right",
"sep_token": "[SEP]",
"stride": 0,
"strip_accents": null,
"tokenize_chinese_chars": true,
"tokenizer_class": "BertTokenizer",
"truncation_side": "right",
"truncation_strategy": "longest_first",
"unk_token": "[UNK]"
}
|