Bugpie commited on
Commit
c6b886d
·
1 Parent(s): 58168d8

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +3 -9
README.md CHANGED
@@ -72,14 +72,8 @@ import torch
72
  ['▁J', "'", 'aime', '▁le', '▁ca', 'member', 't', '▁!']
73
  >>> encoded_sentence
74
  # [5, 121, 11, 660, 16, 730, 25543, 110, 83, 6]
75
-
76
- encoded_sentence = torch.tensor(encoded_sentence).unsqueeze(0)
77
- embeddings, _ = camembert(encoded_sentence)
78
- # embeddings.detach()
79
- # embeddings.size torch.Size([1, 10, 768])
80
- # tensor([[[-0.0254, 0.0235, 0.1027, ..., -0.1459, -0.0205, -0.0116],
81
- # [ 0.0606, -0.1811, -0.0418, ..., -0.1815, 0.0880, -0.0766],
82
- # [-0.1561, -0.1127, 0.2687, ..., -0.0648, 0.0249, 0.0446],
83
- # ...,
84
  ```
 
 
 
85
  ![128791.gif](https://s3.amazonaws.com/moonup/production/uploads/1666329291279-634fe2e8cfefce6e57795f69.gif)
 
72
  ['▁J', "'", 'aime', '▁le', '▁ca', 'member', 't', '▁!']
73
  >>> encoded_sentence
74
  # [5, 121, 11, 660, 16, 730, 25543, 110, 83, 6]
 
 
 
 
 
 
 
 
 
75
  ```
76
+
77
+ ![128791.gif](https://s3.amazonaws.com/moonup/production/uploads/1666329291279-634fe2e8cfefce6e57795f69.gif)
78
+ ![128791.gif](https://s3.amazonaws.com/moonup/production/uploads/1666329291279-634fe2e8cfefce6e57795f69.gif)
79
  ![128791.gif](https://s3.amazonaws.com/moonup/production/uploads/1666329291279-634fe2e8cfefce6e57795f69.gif)