Leonard Püttmann commited on
Commit
46b9707
·
verified ·
1 Parent(s): 7c19dd7

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +1 -1
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