Rustling is a high-performance library for computational linguistics. It aims to provide flexible and efficient tools to facilitate further research.
Documentation: Python | Rust (v0.9.0; see Rust installation)
Currently implemented features:
-
Sequence modeling:
- N-grams and related language models
- Hidden Markov model
- Word segmentation
- Averaged perceptron part-of-speech tagging
-
Handling richly formatted data, supporting cross-format conversion as well as both local and remote sources for data ingestion:
- CHAT for TalkBank and CHILDES
- ELAN for annotated multimedia data
- TextGrid for Praat annotations
- CoNLL-U for University Dependencies
- SRT for SubRip subtitles
Rustling is highly performant because it is implemented in Rust under the hood.
For benchmarks comparing Rustling against other Python packages with similar functionalities,
please see benchmarks.
Using pip:
pip install rustlingUsing conda:
conda install -c conda-forge rustlingFor Pyodide, pre-built WASM wheels (with multithreading disabled, as Pyodide does not support it)
are available from each GitHub release
— look for the .whl file with emscripten in the filename.
Since v0.10.0, Rustling depends on chatter
for CHAT parsing, which is not yet on crates.io.
Until it is, new Rustling releases are not on crates.io either
(the latest there is v0.9.0), and Rust users can depend on a release tag
in Cargo.toml instead:
[dependencies]
rustling = { git = "https://github.com/jacksonllee/rustling", tag = "v0.10.0" }MIT License