BSD Ports

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.

Repositoryaarch64amd64armv6armv7i386
FreeBSD:14:latest-----
FreeBSD:14:quarterly--n/a--
FreeBSD:15:latest--n/a--
FreeBSD:15:quarterly--n/an/an/a
FreeBSD:16:latest--n/an/an/a
FreeBSD:16:quarterlyn/an/an/an/an/a

Dependencies

As this port's Makefile names them.

Build 1

The full lists below include those, and their dependencies in turn.

Build dependencies 23
Run dependencies 7

No port depends on this one.

Configuration

No options to configure.

USES
cmake:indirect python
Service scripts
none

Files

distinfo 1
FileSizeSHA256
kenlm-0.3.0.tar.gz427500c4628bb9fb63c8a6f9240035b8b037385cfc404cb72e933cf48878291edac1e8
Master sites 1
  • PYPI

Commit history 1

DateCommitCreditsLog 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@)