Commit
·
134900a
1
Parent(s):
4974c4d
Update README.md
Browse files
README.md
CHANGED
@@ -30,8 +30,8 @@ from WordTransformer import WordTransformer
|
|
30 |
from InputExample import InputExample
|
31 |
|
32 |
model = WordTransformer('pierluigic/xl-lexeme')
|
33 |
-
examples = InputExample(texts=
|
34 |
-
fox_embedding = model.encode(examples)
|
35 |
```
|
36 |
|
37 |
|
|
|
30 |
from InputExample import InputExample
|
31 |
|
32 |
model = WordTransformer('pierluigic/xl-lexeme')
|
33 |
+
examples = InputExample(texts="the quick fox jumps over the lazy dog", positions=[10,13])
|
34 |
+
fox_embedding = model.encode(examples) #The embedding of the target word "fox"
|
35 |
```
|
36 |
|
37 |
|