Skip to main content

This is a library for reading ARPA n-gram models.

Project description

PyPI Version PyPI Downloads Travis Coverage Status

This is a library for reading ARPA n-gram models.
It was initiated by Stefan Fischer and is developed and maintained by many others.

Install

The package is available on PyPI:

$ pip install arpa
Python 3.2+ is required: PyPI Python Versions
Wheels are supported: PyPI Wheel

Use

The package may be imported directly:

import arpa
models = arpa.loadf("foo.arpa")
lm = models[0]  # ARPA files may contain several models.
lm.p("in the end")  # p(end|in, the)

Contribute

Write a bug report or send a pull request.
Other contributors have done so before.

License License

Copyright (c) 2015 Stefan Fischer
The source code is available under the MIT License.
See LICENSE for further details.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

arpa-0.1.0a6.tar.gz (6.8 kB view hashes)

Uploaded Source

Built Distribution

arpa-0.1.0a6-py3-none-any.whl (9.7 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page