From 59c2bd0015c6878ac35c52b989ff768d39ce5fe2 Mon Sep 17 00:00:00 2001 From: vandan Date: Tue, 18 May 2021 14:06:18 +0530 Subject: [PATCH] updated --- get_translation_iiith_hindi_telugu.py | 2 +- get_translation_iiith_telugu_hindi.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/get_translation_iiith_hindi_telugu.py b/get_translation_iiith_hindi_telugu.py index c46ce91..5ae0311 100644 --- a/get_translation_iiith_hindi_telugu.py +++ b/get_translation_iiith_hindi_telugu.py @@ -31,7 +31,7 @@ def read_file(path, isref=False): _data_source = read_file(source_file) _data_sys = [call_mt(text, 'hin', 'tel').replace('\n',' ') for text in tqdm(_data_source)] -_f = open(output_file, 'w') +_f = open(output_file, 'w', encoding="utf8") for line in _data_sys: _f.write(line+'\n') print (line) diff --git a/get_translation_iiith_telugu_hindi.py b/get_translation_iiith_telugu_hindi.py index 4eda61d..bb42951 100644 --- a/get_translation_iiith_telugu_hindi.py +++ b/get_translation_iiith_telugu_hindi.py @@ -31,7 +31,7 @@ def read_file(path, isref=False): _data_source = read_file(source_file) _data_sys = [call_mt(text, 'tel', 'hin').replace('\n',' ') for text in tqdm(_data_source)] -_f = open(output_file, 'w') +_f = open(output_file, 'w', encoding="utf8") for line in _data_sys: _f.write(line+'\n') print (line) -- GitLab