Skip to content

Detects language of given text. Returns detected language codes and scores.

License

Notifications You must be signed in to change notification settings

DMo-on/Detect-Language

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Detect Language:

I used a stopwords based approach.

  • First step is to “tokenize”.
  • NLTK gives us stopwords for several languages (here I used Arabic,French and English stopwords).
  • I compute language probability depending on which stopwords are used.
  • Finally, I chose the “key” with the biggest “value”.

About

Detects language of given text. Returns detected language codes and scores.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages