israelcamp commited on
Commit
3fa768b
1 Parent(s): 5a54bf3

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +1 -1
README.md CHANGED
@@ -41,7 +41,7 @@ input_ids = tokenizer.encode('Tinha uma pedra no meio do caminho.', return_tenso
41
 
42
  with torch.no_grad():
43
  outs = model(input_ids)
44
- encoded = outs.last_hidden_state[0, 1:-1] # Ignore [CLS] and [SEP] special tokens
45
  ```
46
 
47
  ## Citation
 
41
 
42
  with torch.no_grad():
43
  outs = model(input_ids)
44
+ encoded = outs.last_hidden_state[0, 0] # Take [CLS] special token representation
45
  ```
46
 
47
  ## Citation