Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
Open more actions menu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Detect the languages present in the given sentence

This work detects the given language/languages present in the given sentence.

Requirements

* python >=3.4
* lang_detect
* polyglot
* flask (only if you want to host using flask)
* docker (only if you want to host it using docker)

Installation

Usage

detect_language.py [-h]  [--str String]
               [--supported_language, --sl]

** required arguements:
  --str                           string to detect language


** optional arguments:
  -h, --help                      help message
  --sl, --supported_language      supported languages

Host using Flask

python flask_hosted/app.py

Default port used is localhost:8082

Host using Flask

docker build Dockerfile 

NOTE: Docker needs to be installed before using it with docker. Install docker from here for Ubuntu: https://docs.docker.com/install/linux/docker-ce/ubuntu/

Run tests

python tests/test.py

Releases

Packages

Contributors

Languages

Morty Proxy This is a proxified and sanitized view of the page, visit original site.