Update README.md
Browse files
README.md
CHANGED
@@ -47,11 +47,26 @@ Downloading the model results in a directory called **roberta-large-bne-celebAEs
|
|
47 |
```python
|
48 |
from sentence_transformers import SentenceTransformer, InputExample, models, losses, util, evaluation
|
49 |
model_sbert = SentenceTransformer('roberta-large-bne-celebAEs-UNI')
|
50 |
-
caption = ['La mujer tiene pomulos altos. Su cabello es de color negro.
|
51 |
-
|
|
|
|
|
|
|
52 |
print(vector)
|
53 |
```
|
54 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
55 |
|
56 |
## Licensing information
|
57 |
This model is available under the [Apache License 2.0.](https://www.apache.org/licenses/LICENSE-2.0)
|
|
|
47 |
```python
|
48 |
from sentence_transformers import SentenceTransformer, InputExample, models, losses, util, evaluation
|
49 |
model_sbert = SentenceTransformer('roberta-large-bne-celebAEs-UNI')
|
50 |
+
caption = ['La mujer tiene pomulos altos. Su cabello es de color negro.
|
51 |
+
Tiene las cejas arqueadas y la boca ligeramente abierta.
|
52 |
+
La joven y atractiva mujer sonriente tiene mucho maquillaje.
|
53 |
+
Lleva aretes, collar y lapiz labial.']
|
54 |
+
vector = model_sbert.encode(captions)
|
55 |
print(vector)
|
56 |
```
|
57 |
+
## Results
|
58 |
+
As a result, the encoder will generate a numeric vector whose dimension is 1024.
|
59 |
+
|
60 |
+
```python
|
61 |
+
>>$ print(vector)
|
62 |
+
>>$ [0.2,0.5,0.45,........0.9]
|
63 |
+
>>$ len(vector)
|
64 |
+
>>$ 1024
|
65 |
+
```
|
66 |
+
|
67 |
+
## More information
|
68 |
+
|
69 |
+
To see more detailed information about the implementation visit the ![following link](https://github.com/eduar03yauri/DCGAN-text2face-forSpanish/blob/main/Data/encoder-models/RoBERTa_model_trained.md).
|
70 |
|
71 |
## Licensing information
|
72 |
This model is available under the [Apache License 2.0.](https://www.apache.org/licenses/LICENSE-2.0)
|