Language Translator Python
Language Translator Python
ADICHUNCHANAGIRI UNIVERSITY
A Mini Project
Report On
“LANGUAGE TRANSLATOR USING PYTHON”
Submitted in partial fulfilment for
academic year 2024-2025
Bachelor of Engineering
in
Computer Science And Engineering
Submitted by,
KARNIKA CHINMAYI M R (22CSE065)
KEERTHAN AIYAPPA T S (22CSE067)
Under the guidance of:
Mrs.Ancy Y Das,
Assistant Professor, Dept. of CSE,
BGSIT, BG Nagara,
1
|| Jai Sri Gurudev||
ADICHUNCHANAGIRI UNIVERSITY
CERTIFICATE
This is to certify that the mini project entitled “LANGUAGE
TRANSLATOR USING PYTHON” is a bonafide work carried by
Ms.KARNIKA CHINMAYI M R, bearing USN:22CSE067 and
KEERTHAN AIYAPPA TS bearing USN:22CSE067 the students of B G S
INSTITUTE OF TECHNOLOGY, B G Nagara in partial fulfillment of
Bachelor of Engineering in Computer Science And Engineering, of
Adichunchanagiri University during the academic year 2024-2025. It is certified
that all correction / suggestions indicated for internal assessment have been
incorporated in the report deposited in the department library.
At first, we would like to thank the Divine Soul PADMABHUSHAN SRI DR.
BALAGANGADARANATHA MAHASWAMIJI, Founder President, Sri Adichunchanagiri Math
and SRI DR. NIRMALANANDANATHA MAHASWAMIJI, President, Adichunchanagiri
Shikshana Trust, and Chancellor, Adichunchanagiri University, for providing us with such
excellent facilities and Lectures, without which, this project work could not have acquired
the shape it has now done.
I would like sincere gratitude to our beloved principal DR. B N SHOBHA, Dean &
Principal, BGSIT, B.G Nagara for providing the necessary facilities and support, thus
making it possible for us to obtain the necessary resources required to complete this mini
project work.
My sincere thanks to DR. SHASHIKALA SV, Professor and Head of Department,
CSE, BGSIT, B G Nagara, Mandya, for giving us a chance to carry out and present our
project work with all the support and facilities
like to thank Mrs.ANCY Y DAS, Assistant Professor, Department of CSE, BGSIT, BG
Nagara, Mandya for providing me enough technical guidance and necessary facilities and
support. our honorable guide who stood as an excellent guide to carry out my work has been
always available expensive evaluator for the creation and correction of the report towards this
work.
My heartfelt gratitude to all the teaching and non-teaching faculty of Computer
Science And Engineering Department, BGSIT, BG Nagara, Mandya, for their support and
guidance towards the completion of our mini project work.
Finally, I would also extend my heartfelt thanks to my family members, classmates,
friends and well-wishers for their support and encouragement throughout this effort.
3
CONTENTS
Title Page No.
ACKNOWLEDGMENT i
ABSTRACT ii
CHAPTER 1
INTRODUCTION7 1
1.1 Existing system 2
1.2Limitations of Existing system 2
1.3Objectives 3
1.4 Scope 4-5
CHAPTER 2
LITERATURE SURVEY 6-8
CHAPTER 3
SYSTEM DESIGN & ANALYSIS 9-10
3.1 Data Flow Diagram 9-10
CHAPTER 4
IMPLEMENTATION 11-15
4.1 Requirements 11
4.2 Source Code 12-15
CHAPTER 5
RESULTS AND DISCUSSION 16-17
CONCLUSION 18
REFERENCES 19
4
ABSTRACT
A language translator is a mobile application that can be utilized for translating from one
language to another. The problem of language difference has hindered effective information
communication over the years. This traditional approach used for solving the problem of
language differences has not been productive and favorable. The study develops an android
language converter app in order to make learning and language translation easy and
facilitates stress-free communication. The system will also be able to evaluate language
translation to determine their suitability for everyday conversation. The proposed system
employs a neural network architecture trained on vast multilingual datasets to accurately
translate text between multiple languages. Leveraging recent advancements in natural
language processing, the translator demonstrates impressive proficiency in preserving
context, tone, and idiomatic expressions across languages. Additionally, the system
incorporates feedback mechanisms to continuously improve translation quality over time.
The versatility and accuracy of this multilingual language translator make it a valuable tool
for fostering cross-cultural understanding and facilitating seamless communication on a
global scale.
LANGUAGE TRANSLATOR USING 2023-24
PYTHON
CHAPTER 1.
INTRODUCTION
In our increasingly interconnected world, effective communication across linguistic
boundaries is essential for fostering collaboration, understanding, and progress. However,
the diversity of languages spoken worldwide presents a significant challenge for individuals
and organizations seeking to communicate across borders. Language barriers can impede
the exchange of ideas, limit opportunities for cooperation, and hinder cultural exchange.
Language translation technologies have emerged as a vital solution to this challenge,
enabling individuals and businesses to overcome linguistic barriers and engage with people
from diverse backgrounds. Traditional translation methods, such as manual translation by
human linguists, have long been the primary means of bridging language gaps. However,
these methods are often time-consuming, costly, and may not always be available for less
widely spoken languages.
2. Accuracy and Reliability: Words with multiple meanings (polysemous words) can
lead to incorrect translations if the context isn’t properly understood.
4. Language Pair Coverage: Many translation systems are focused on major world
languages and often lack support or have poor accuracy for less commonly spoken
languages.
5. Syntax and Grammar: Proper handling of gendered language, formality levels, and
other grammatical nuances can be difficult.
6. Pragmatic Understanding: Translating not just the words, but the speaker's intent
and tone, is challenging. This can lead to translations that miss the subtleties of
politeness, humor, or sarcasm.
1.3 Objectives
o Accuracy: Develop a language translator with high accuracy in translating
text between multiple languages, ensuring that the translated output preserves
the meaning, context, and nuances of the original text.
o Efficiency: Create a translator that can efficiently process and translate text in
real-time, minimizing latency and enabling seamless communication across
linguistic barriers.
o Context Preservation: Ensure that the translator can accurately preserve the
context, tone, and style of the original text, including idiomatic expressions,
cultural references, and colloquialisms.
1.4 Scope
1. Research Scope:
2. Development Scope:
3. Application Scope:
• Communication
• Business and Commerce
• Travel and Tourism
• Healthcare
• Education
• Media and Government
• Legal and Government
• Social Media
Dept. of CSE, BGS Page 4
LANGUAGE TRANSLATOR USING 2023-24
PYTHON
4. Interdisciplinary Scope:
CHAPTER 2.
LITERATURE SURVEY
o Title: "A Survey of Machine Translation: Its History, Current Status, and
Future Prospects"
o Summary: While an older publication, this survey provides valuable insights
into the historical development of machine translation, including rule-based
and statistical approaches. It discusses the challenges faced by early
translation systems and offers perspectives on future directions.
CHAPTER 3.
This flowchart outlines a process for translating text using a database. Here's a
step- by-step explanation of the flow:
2. Choose Language: The user selects the language into which they want their text
translated.
3. User enters the text that is to be translated: The user inputs the text they want to
be translated.
4. Matches with database: The system checks if the entered text has a match in the
translation database.
5. Display translated Text: The system displays the translated text from the database.
6. Display letter by letter: If no match is found, the system translates and displays
the text letter by letter.
7. Input another text: The user is asked whether they want to input another text.
CHAPTER 4.
SYSTEM IMPLEMENTATION
4.1 REQUIREMENTS
Hardware Requirements:
1. Processor: Any modern dual-core CPU
2. RAM: 4 GB
3. Storage: 10 GB
Software Requirements:
1. Python: 3.7 or higher
2. Libraries:
- transformers
- torch or tensorflow
- numpy
- pandas
- scikit-learn
- sentencepiece (for tokenization)
- CUDA (for GPU support): CUDA Toolkit 11.x
def translate():
language_1 = t1.get("1.0", "end-1c")
cl = choose_langauge.get()
if language_1 == '':
messagebox.showerror('Language Translator', 'please fill the
box') else:
t2.delete(1.0, 'end')
translator = Translator()
output = translator.translate(language_1, dest=cl)
t2.insert('end', output.text)
Dept. of CSE, BGS Page 13
LANGUAGE TRANSLATOR USING 2023-24
PYTHON
auto_detect.place(x=30, y=70)
auto_detect.current(0)
state='readonly',
font=('verdana', 10, 'bold'))
choose_langauge.place(x=290, y=70)
choose_langauge.current(0)
button = Button(root,
Dept. of CSE, BGS Page 15
LANGUAGE TRANSLATOR USING 2023-24
PYTHON
text="Translate",
relief=RIDGE,
borderwidth=3,
font=('verdana', 10, 'bold'),
cursor="hand2",
foreground='Green',
command=translate)
button.place(x=150, y=280)
clear = Button(root,
text="Clear",
relief=RIDGE,
borderwidth=3,
font=('verdana', 10, 'bold'),
cursor="hand2",
foreground='Red',
command=clear)
clear.place(x=280, y=280)
root.mainloop()
CHAPTER 5.
Fig. Example 1
Fig. Example 2
CONCLUSION
In the existing system, we have google translator which utilizes internet
connectivity whereas internet may not be available all the time and there are also
many android application available that may not support all the functionalities like
scanning text, speech recognition and translates the text and which are applicable for
specific and limited languages which are not useful for all the users. So here in the
proposed system where we will be implementing translation with support all the
functionalities like scanning text, speech recognition and translates the text and
includes the languages which are popular in our country as well as popular all over the
REFERENCE
[1] Pramudita, Y. D., Putro, S. S., Wahyudi, R. N., Suzanti, I. O., & Solihin, F. (2020).
RESTful Web Service for Madurese and Indonesian Language Translator Applications
on Android Devices. 2020 6th Information Technology International Seminar (ITIS).
[2] Priya, L., Sathya, A., & Raja, S. K. S. (2020). Indian and English Language to Sign
Language Translator- an Automated Portable Two Way Communicator for Bridging
Normal and Deprived Ones. 2020 International Conference on Power, Energy, Control
and Transmission Systems (ICPECTS).
[3] Fong, Sim Liew; Elfaki, Abdelrahman Osman; bin Md Johar, Md Gapar; Aik,
Kevin Loo Teow (2017). [IEEE 2011 5th Malaysian Conference in Software
Engineering (MySEC) - Johor Bahru, Malaysia (2011.12.13-2011.12.14)] 2011
Malaysian Conference in Software Engineering - Mobile language translator.
[4] Image text to speech conversion in the desired language by translating with
Raspberry Pi ,H Ritika, Nithya Santoshi 2016 IEEE International Conference on
Computational Intelligence and Computing Research(ICCIC).
[5] Lahoti, S., Kayal, S., Kumbhare, S., Suradkar, I., & Pawar, V. (2018, July).
Android- based American sign language recognition system with skin segmentation and
SVM. In 2018 9th International Conference on Computing, Communication, and
Networking Technologies (ICCCNT).
[6] Evelyn, C. C., Bennett, E. O., & Taylor, O. E. (2019). A Natural Language
Processing System for English to Igbo Language Translation in Android.
INTERNATIONAL JOURNAL OF COMPUTER SCIENCE AND
MATHEMATICAL THEORY.
[7] Hakkun, R. Y., & Baharuddin, A. (2015, September). Sign language learning based
on Android for deaf and speech-impaired people. In 2015 International Electronics
Symposium .
Dept. of CSE, BGS Page 20