Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
H
Hindi-Telugu-IIITHMT-API-call
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Environments
Packages & Registries
Packages & Registries
Package Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
Hindi-Telugu-IIITHMT-API-call
Commits
59c2bd00
Commit
59c2bd00
authored
May 18, 2021
by
Vandan Mujadia
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
updated
parent
4828e323
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
get_translation_iiith_hindi_telugu.py
get_translation_iiith_hindi_telugu.py
+1
-1
get_translation_iiith_telugu_hindi.py
get_translation_iiith_telugu_hindi.py
+1
-1
No files found.
get_translation_iiith_hindi_telugu.py
View file @
59c2bd00
...
@@ -31,7 +31,7 @@ def read_file(path, isref=False):
...
@@ -31,7 +31,7 @@ def read_file(path, isref=False):
_data_source
=
read_file
(
source_file
)
_data_source
=
read_file
(
source_file
)
_data_sys
=
[
call_mt
(
text
,
'hin'
,
'tel'
).
replace
(
'
\n
'
,
' '
)
for
text
in
tqdm
(
_data_source
)]
_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
:
for
line
in
_data_sys
:
_f
.
write
(
line
+
'
\n
'
)
_f
.
write
(
line
+
'
\n
'
)
print
(
line
)
print
(
line
)
...
...
get_translation_iiith_telugu_hindi.py
View file @
59c2bd00
...
@@ -31,7 +31,7 @@ def read_file(path, isref=False):
...
@@ -31,7 +31,7 @@ def read_file(path, isref=False):
_data_source
=
read_file
(
source_file
)
_data_source
=
read_file
(
source_file
)
_data_sys
=
[
call_mt
(
text
,
'tel'
,
'hin'
).
replace
(
'
\n
'
,
' '
)
for
text
in
tqdm
(
_data_source
)]
_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
:
for
line
in
_data_sys
:
_f
.
write
(
line
+
'
\n
'
)
_f
.
write
(
line
+
'
\n
'
)
print
(
line
)
print
(
line
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment