textproc/py-langid 1.1.6.20170715_4 FreeBSD
Standalone Language Identification (LangID) tool
- System
- FreeBSD
- Repository
- FreeBSD ports
- Maintainer
- [email protected]
- License
- BSD2CLAUSE
- Categories
- textproc, devel, python
- Package size
- 1867.3 KiB, 7450.9 KiB installed
Description
langid.py is a standalone Language Identification (LangID) tool.
The design principles are as follows:
Fast
Pre-trained over a large number of languages (currently 97)
Not sensitive to domain-specific features (e.g. HTML/XML markup)
Single .py file with minimal dependencies
Deployable as a web service
Remark: the main script langid/langid.py is cross-compatible with both Python2 and Python3, but the accompanying training tools are still Python2-only, hence not installed by this port.
See also the port textproc/py-langdetect for a similar program.
In the other systems
| System | Port | Version |
|---|---|---|
| FreeBSD | textproc/py-langid | 1.1.6.20170715_4 |
| DragonFly | textproc/py-langid | 1.1.6.20170715_2 |
Install
Binary package:
pkg install py312-langid
From the ports tree:
cd /usr/ports/textproc/py-langid/ && make install clean
To depend on this port in another port's Makefile:
RUN_DEPENDS= py312-langid>0:textproc/py-langid
Packages
The version each package repository carries. “-” means the repository builds no package of it, “n/a” that there is no such repository.
| Repository | aarch64 | amd64 | armv6 | armv7 | i386 |
|---|---|---|---|---|---|
| FreeBSD:14:latest | 1.1.6.20170715_4 | 1.1.6.20170715_4 | - | 1.1.6.20170715_2 | 1.1.6.20170715_4 |
| FreeBSD:14:quarterly | 1.1.6.20170715_4 | 1.1.6.20170715_4 | n/a | 1.1.6.20170715_2 | 1.1.6.20170715_4 |
| FreeBSD:15:latest | 1.1.6.20170715_4 | 1.1.6.20170715_4 | n/a | 1.1.6.20170715_2 | 1.1.6.20170715_2 |
| FreeBSD:15:quarterly | 1.1.6.20170715_4 | 1.1.6.20170715_4 | n/a | n/a | n/a |
| FreeBSD:16:latest | 1.1.6.20170715_4 | 1.1.6.20170715_4 | n/a | n/a | n/a |
| FreeBSD:16:quarterly | n/a | n/a | n/a | n/a | n/a |
Dependencies
As this port's Makefile names them.
Build 1
${PYTHON_PKGNAMEPREFIX}numpy>=1.16: math/py-numpy
Runtime 1
${PYTHON_PKGNAMEPREFIX}numpy>=1.16: math/py-numpy
The full lists below include those, and their dependencies in turn.
Build dependencies 18
Run dependencies 16
Required by 2
Configuration
No options to configure.
- USES
- python shebangfix
- Service scripts
- none
Files
pkg-plist 23
- bin/langid
- %%PYTHON_SITELIBDIR%%/langid-1.1.6-py.egg-info/PKG-INFO
- %%PYTHON_SITELIBDIR%%/langid-1.1.6-py.egg-info/SOURCES.txt
- %%PYTHON_SITELIBDIR%%/langid-1.1.6-py.egg-info/dependency_links.txt
- %%PYTHON_SITELIBDIR%%/langid-1.1.6-py.egg-info/entry_points.txt
- %%PYTHON_SITELIBDIR%%/langid-1.1.6-py.egg-info/not-zip-safe
- %%PYTHON_SITELIBDIR%%/langid-1.1.6-py.egg-info/requires.txt
- %%PYTHON_SITELIBDIR%%/langid-1.1.6-py.egg-info/top_level.txt
- %%PYTHON_SITELIBDIR%%/langid/__init__.py
- %%PYTHON_SITELIBDIR%%/langid/__pycache__/__init__.cpython-.opt-1.pyc
- %%PYTHON_SITELIBDIR%%/langid/__pycache__/__init__.cpython-.pyc
- %%PYTHON_SITELIBDIR%%/langid/__pycache__/langid.cpython-.opt-1.pyc
- %%PYTHON_SITELIBDIR%%/langid/__pycache__/langid.cpython-.pyc
- %%PYTHON_SITELIBDIR%%/langid/langid.py
- %%PYTHON_SITELIBDIR%%/langid/tools/__init__.py
- %%PYTHON_SITELIBDIR%%/langid/tools/__pycache__/__init__.cpython-.opt-1.pyc
- %%PYTHON_SITELIBDIR%%/langid/tools/__pycache__/__init__.cpython-.pyc
- %%PYTHON_SITELIBDIR%%/langid/tools/__pycache__/featWeights.cpython-.opt-1.pyc
- %%PYTHON_SITELIBDIR%%/langid/tools/__pycache__/featWeights.cpython-.pyc
- %%PYTHON_SITELIBDIR%%/langid/tools/__pycache__/printfeats.cpython-.opt-1.pyc
- %%PYTHON_SITELIBDIR%%/langid/tools/__pycache__/printfeats.cpython-.pyc
- %%PYTHON_SITELIBDIR%%/langid/tools/featWeights.py
- %%PYTHON_SITELIBDIR%%/langid/tools/printfeats.py
distinfo 1
| File | Size | SHA256 |
|---|---|---|
| saffsd-langid.py-1.1.6-20170715-4153583_GH0.tar.gz | 1.959856e+06 | 04b005bd607fcf54f9b06b41a20f968fcb5bdd7d96ec5471177c88ef858ffc9d |
Commit history 0
No commits in the history this site was built from.