ggrn commited on
Commit
2d62eab
1 Parent(s): 7f5bd82

docs(readme): change repo name

Browse files
Files changed (1) hide show
  1. README.md +3 -3
README.md CHANGED
@@ -2632,8 +2632,8 @@ input_texts = ['query: how much protein should a female eat',
2632
  "passage: As a general guideline, the CDC's average requirement of protein for women ages 19 to 70 is 46 grams per day. But, as you can see from this chart, you'll need to increase that if you're expecting or training for a marathon. Check out the chart below to see how much protein you should be eating each day.",
2633
  "passage: Definition of summit for English Language Learners. : 1 the highest point of a mountain : the top of a mountain. : 2 the highest level. : 3 a meeting or series of meetings between the leaders of two or more governments."]
2634
 
2635
- tokenizer = AutoTokenizer.from_pretrained('intfloat/e5-small-v2')
2636
- model = AutoModel.from_pretrained('intfloat/e5-small-v2')
2637
 
2638
  # Tokenize the input texts
2639
  batch_dict = tokenizer(input_texts, max_length=512, padding=True, truncation=True, return_tensors='pt')
@@ -2679,6 +2679,6 @@ Below is an example for usage with sentence_transformers. `pip install sentence_
2679
  This is community contributed, and results may vary up to numerical precision.
2680
  ```python
2681
  from sentence_transformers import SentenceTransformer
2682
- model = SentenceTransformer('intfloat/e5-small-v2')
2683
  embeddings = model.encode(input_texts, normalize_embeddings=True)
2684
  ```
 
2632
  "passage: As a general guideline, the CDC's average requirement of protein for women ages 19 to 70 is 46 grams per day. But, as you can see from this chart, you'll need to increase that if you're expecting or training for a marathon. Check out the chart below to see how much protein you should be eating each day.",
2633
  "passage: Definition of summit for English Language Learners. : 1 the highest point of a mountain : the top of a mountain. : 2 the highest level. : 3 a meeting or series of meetings between the leaders of two or more governments."]
2634
 
2635
+ tokenizer = AutoTokenizer.from_pretrained('ggrn/e5-small-v2')
2636
+ model = AutoModel.from_pretrained('ggrn/e5-small-v2')
2637
 
2638
  # Tokenize the input texts
2639
  batch_dict = tokenizer(input_texts, max_length=512, padding=True, truncation=True, return_tensors='pt')
 
2679
  This is community contributed, and results may vary up to numerical precision.
2680
  ```python
2681
  from sentence_transformers import SentenceTransformer
2682
+ model = SentenceTransformer('ggrn/e5-small-v2')
2683
  embeddings = model.encode(input_texts, normalize_embeddings=True)
2684
  ```