this is based on calsyslab project
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

23 lines
645 B

  1. from Translator.translate import translate
  2. original_text = """
  3. Жил-был человек из Нантакета,
  4. Который хранил все свои деньги в ведре.
  5. Но его дочь, по имени Нан,
  6. Сбежала с мужчиной,
  7. А что касается ведра, то Нантакет.
  8. """
  9. english_text = """
  10. There once was a man from Нантакета,
  11. Who kept all his cash in a bucket.
  12. But his daughter, named Nan,
  13. Ran away with a man,
  14. And as for the bucket, Nantucket.
  15. """
  16. translated_text = translate(english_text, 'russian')
  17. print(translated_text)
  18. print(english_text == translated_text)