nickprock commited on
Commit
ef45e63
1 Parent(s): 20b1443

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +10 -5
README.md CHANGED
@@ -5,7 +5,12 @@ tags:
5
  - feature-extraction
6
  - sentence-similarity
7
  - transformers
8
-
 
 
 
 
 
9
  ---
10
 
11
  # {MODEL_NAME}
@@ -28,7 +33,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 +59,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')
@@ -123,4 +128,4 @@ SentenceTransformer(
123
 
124
  ## Citing & Authors
125
 
126
- <!--- Describe where people can find more information -->
 
5
  - feature-extraction
6
  - sentence-similarity
7
  - transformers
8
+ license: apache-2.0
9
+ datasets:
10
+ - stsb_multi_mt
11
+ language:
12
+ - it
13
+ library_name: sentence-transformers
14
  ---
15
 
16
  # {MODEL_NAME}
 
33
  from sentence_transformers import SentenceTransformer
34
  sentences = ["This is an example sentence", "Each sentence is converted"]
35
 
36
+ model = SentenceTransformer('nickprock/stsbm-sentence-flare-it')
37
  embeddings = model.encode(sentences)
38
  print(embeddings)
39
  ```
 
59
  sentences = ['This is an example sentence', 'Each sentence is converted']
60
 
61
  # Load model from HuggingFace Hub
62
+ tokenizer = AutoTokenizer.from_pretrained('nickprock/stsbm-sentence-flare-it')
63
+ model = AutoModel.from_pretrained('nickprock/stsbm-sentence-flare-it')
64
 
65
  # Tokenize sentences
66
  encoded_input = tokenizer(sentences, padding=True, truncation=True, return_tensors='pt')
 
128
 
129
  ## Citing & Authors
130
 
131
+ Other information on [flare-it page](https://huggingface.co/osiria/flare-it)