Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/zevio/pcu_language
- Owner: zevio
- License: gpl-3.0
- Created: 2018-09-10T18:57:20.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2018-11-28T21:40:47.000Z (about 6 years ago)
- Last Synced: 2024-10-08T12:42:49.669Z (3 months ago)
- Topics: component, detection, english, french, langdetect, language, language-detection, language-detection-component, pcu, pcu-language, python
- Language: Python
- Size: 19.5 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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`