Leonard Püttmann
commited on
Update README.md
Browse files
README.md
CHANGED
@@ -40,7 +40,7 @@ response = generate_response(text_to_translate)
|
|
40 |
print(response)
|
41 |
```
|
42 |
|
43 |
-
As this model is trained on translating sentence pairs, it is best to split longer text into individual sentences, ideally using SpaCy:
|
44 |
```python
|
45 |
from transformers import AutoTokenizer, AutoModelForSeq2SeqLM
|
46 |
import spacy
|
|
|
40 |
print(response)
|
41 |
```
|
42 |
|
43 |
+
As this model is trained on translating sentence pairs, it is best to split longer text into individual sentences, ideally using SpaCy. You can then translate the sentences and join the translations at the end like this:
|
44 |
```python
|
45 |
from transformers import AutoTokenizer, AutoModelForSeq2SeqLM
|
46 |
import spacy
|