Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/zevio/pcu_language

Language detection component (langdetect) for PCU project
https://github.com/zevio/pcu_language

component detection english french langdetect language language-detection language-detection-component pcu pcu-language python

Last synced: about 2 months ago
JSON representation

Language detection component (langdetect) for PCU project

Awesome Lists containing this project

README

        

# pcu_language
Language detection component (langdetect) for PCU project.
From the path of a text file, detect the main language/all languages used within the text.

Based on [langdetect][langdetect].

![language](https://framapic.org/nY62APFOVnMW/WVYoU9shHZkP.png)

----

[Check PCU project][pcu].

[langdetect]:https://pypi.org/project/langdetect/
[pcu]: https://github.com/zevio/pcu_core

## Installation

To install requirements, go to pcu_language/ directory and execute the Makefile with the following command line :

`make init`

## Usage in another project

If you wish to import this module in another Python project, please install it :

`pip install pcu-language`

Then, add this import line at the beginning of your Python file :

`from pcu_langage import pcu_language`

You can now use pcu_language's functions, for example :

`pcu_language.detectLanguage("path/to/txt/file")`

## Test

To test your installation, go to pcu_language/ directory and execute the Makefile with the following command line :

`make test`