updated the readme.md usage example
Browse files
README.md
CHANGED
@@ -23,7 +23,7 @@ Usage example:
|
|
23 |
---
|
24 |
|
25 |
``` python
|
26 |
-
from transformers import AutoTokenizer, AutoModelForSeq2SeqLM
|
27 |
from IPython.display import display, Math, Latex
|
28 |
|
29 |
model_dir = "turnipseason/latext5"
|
@@ -47,7 +47,8 @@ early_stopping=True
|
|
47 |
for h in hypotheses:
|
48 |
display(Latex(tokenizer.decode(h, skip_special_tokens=True)))
|
49 |
|
50 |
-
text = '''лямбда прописная квадрат минус три равно десять игрек куб
|
|
|
51 |
get_latex(text)
|
52 |
|
53 |
```
|
|
|
23 |
---
|
24 |
|
25 |
``` python
|
26 |
+
from transformers import AutoTokenizer, AutoModelForSeq2SeqLM
|
27 |
from IPython.display import display, Math, Latex
|
28 |
|
29 |
model_dir = "turnipseason/latext5"
|
|
|
47 |
for h in hypotheses:
|
48 |
display(Latex(tokenizer.decode(h, skip_special_tokens=True)))
|
49 |
|
50 |
+
text = '''лямбда прописная квадрат минус три равно десять игрек куб
|
51 |
+
При этом шинус икс равен интеграл от экспоненты до трёх игрек штрих'''
|
52 |
get_latex(text)
|
53 |
|
54 |
```
|