BlackKakapo commited on
Commit
f0d8916
·
1 Parent(s): c162e9e

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +0 -13
README.md CHANGED
@@ -60,19 +60,6 @@ sentences = ['This is an example sentence', 'Each sentence is converted']
60
  # Load model from HuggingFace Hub
61
  tokenizer = AutoTokenizer.from_pretrained('BlackKakapo/stsb-xlm-r-multilingual-ro')
62
  model = AutoModel.from_pretrained('BlackKakapo/stsb-xlm-r-multilingual-ro')
63
-
64
- # Tokenize sentences
65
- encoded_input = tokenizer(sentences, padding=True, truncation=True, return_tensors='pt')
66
-
67
- # Compute token embeddings
68
- with torch.no_grad():
69
- model_output = model(**encoded_input)
70
-
71
- # Perform pooling. In this case, mean pooling.
72
- sentence_embeddings = mean_pooling(model_output, encoded_input['attention_mask'])
73
-
74
- print("Sentence embeddings:")
75
- print(sentence_embeddings)
76
  ```
77
 
78
  ## Training
 
60
  # Load model from HuggingFace Hub
61
  tokenizer = AutoTokenizer.from_pretrained('BlackKakapo/stsb-xlm-r-multilingual-ro')
62
  model = AutoModel.from_pretrained('BlackKakapo/stsb-xlm-r-multilingual-ro')
 
 
 
 
 
 
 
 
 
 
 
 
 
63
  ```
64
 
65
  ## Training