Skip to content

Latest commit

 

History

3 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 

Repository files navigation

Language-detection-of-text-using-python.

Introduction

Hello Curious Coders,

In this project, we are going to learn how to detect the language in text using Python with the help of libraries like long detect. This parses through the basic functions of langdetect library and is going to detect the sentence of a language.

Code Explanation

First we imported the langdetect package Next we created a function which takes the sentence as an argument and detects the language of the sentence using detect() function of langdetect package. Later we created aa dictionary which consists of langauges and their respective codes to make sure the output looks good as the detect() function is going to return the lang codes.

Input:

Enter text: "வணக்கம்"

Output

The language of the text is: Tamil

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages