misc/py-kenlm 0.3.0 FreeBSD
KenLM: Faster and Smaller Language Model Queries
- System
- FreeBSD
- Repository
- FreeBSD ports
- Maintainer
- [email protected]
- Port added
- Last update
- Commit
96b49826ef- License
- LGPL21
- Categories
- misc
Description
KenLM is a fast and memory-efficient library for estimating and querying n-gram language models.
This package provides the official Python bindings for KenLM, allowing users to load trained language models, query n-gram probabilities, and compute sentence scores directly within Python pipelines. It is commonly used in speech recognition, machine translation, and text generation tasks for fast perplexity estimation.
Install
Binary package:
pkg install py312-kenlm
From the ports tree:
cd /usr/ports/misc/py-kenlm/ && make install clean
To depend on this port in another port's Makefile:
RUN_DEPENDS= py312-kenlm>0:misc/py-kenlm
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 | - | - | - | - | - |
| FreeBSD:14:quarterly | - | - | n/a | - | - |
| FreeBSD:15:latest | - | - | n/a | - | - |
| FreeBSD:15:quarterly | - | - | n/a | n/a | n/a |
| FreeBSD:16:latest | - | - | 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}wheel>0: devel/py-wheel
The full lists below include those, and their dependencies in turn.
Build dependencies 23
- archivers/liblz4
- archivers/zstd
- devel/cmake-core
- devel/gettext-runtime
- devel/jsoncpp
- devel/libffi
- devel/libunistring
- devel/libuv
- devel/py-build
- devel/py-installer
- devel/py-packaging
- devel/py-pyproject-hooks
- devel/py-setuptools
- devel/py-wheel
- devel/readline
- dns/libidn2
- lang/python312
- lang/python315
- math/mpdecimal
- ports-mgmt/pkg
- print/indexinfo
- security/rhash
- textproc/expat2
Run dependencies 7
No port depends on this one.
Configuration
No options to configure.
- USES
- cmake:indirect python
- Service scripts
- none
Files
distinfo 1
| File | Size | SHA256 |
|---|---|---|
| kenlm-0.3.0.tar.gz | 427500 | c4628bb9fb63c8a6f9240035b8b037385cfc404cb72e933cf48878291edac1e8 |
Master sites 1
- PYPI
Commit history 1
| Date | Commit | Credits | Log message |
|---|---|---|---|
96b49826ef |
Yuri Victorovich | misc/py-kenlm: New port: KenLM: Faster and Smaller Language Model Queries PR: 298596
Approved by: Baptiste Daroussin <[email protected]> (on behalf of portmgr@) |