JoBeer commited on
Commit
f72b574
·
1 Parent(s): 53b6ace

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +4 -4
README.md CHANGED
@@ -12,7 +12,7 @@ tags:
12
 
13
  This is a [sentence-transformers](https://www.SBERT.net) model: It maps sentences & paragraphs to a 384 dimensional dense vector space and can be used for tasks like clustering or semantic search.
14
 
15
- The model is based on the sentence-transformers/all-MiniLM-L6-v2 model and was fine-tuned with the eclass-dataset (https://huggingface.co/datasets/gart-labor/eclassTrainST).
16
 
17
  ## Usage (Sentence-Transformers)
18
 
@@ -28,7 +28,7 @@ Then you can use the model like this:
28
  from sentence_transformers import SentenceTransformer
29
  sentences = ["This is an example sentence", "Each sentence is converted"]
30
 
31
- model = SentenceTransformer('{MODEL_NAME}')
32
  embeddings = model.encode(sentences)
33
  print(embeddings)
34
  ```
@@ -54,8 +54,8 @@ def mean_pooling(model_output, attention_mask):
54
  sentences = ['This is an example sentence', 'Each sentence is converted']
55
 
56
  # Load model from HuggingFace Hub
57
- tokenizer = AutoTokenizer.from_pretrained('{MODEL_NAME}')
58
- model = AutoModel.from_pretrained('{MODEL_NAME}')
59
 
60
  # Tokenize sentences
61
  encoded_input = tokenizer(sentences, padding=True, truncation=True, return_tensors='pt')
 
12
 
13
  This is a [sentence-transformers](https://www.SBERT.net) model: It maps sentences & paragraphs to a 384 dimensional dense vector space and can be used for tasks like clustering or semantic search.
14
 
15
+ The model is based on the sentence-transformers/all-MiniLM-L6-v2 model and was fine-tuned with the [eclass-dataset](https://huggingface.co/datasets/gart-labor/eclassTrainST).
16
 
17
  ## Usage (Sentence-Transformers)
18
 
 
28
  from sentence_transformers import SentenceTransformer
29
  sentences = ["This is an example sentence", "Each sentence is converted"]
30
 
31
+ model = SentenceTransformer('gart-labor/paraphrase-MiniLM-L6-v2-eclass')
32
  embeddings = model.encode(sentences)
33
  print(embeddings)
34
  ```
 
54
  sentences = ['This is an example sentence', 'Each sentence is converted']
55
 
56
  # Load model from HuggingFace Hub
57
+ tokenizer = AutoTokenizer.from_pretrained('gart-labor/paraphrase-MiniLM-L6-v2-eclass')
58
+ model = AutoModel.from_pretrained('gart-labor/paraphrase-MiniLM-L6-v2-eclass')
59
 
60
  # Tokenize sentences
61
  encoded_input = tokenizer(sentences, padding=True, truncation=True, return_tensors='pt')