Skip to main content

Interactive phoneme-level plots for comparing forced-alignment outputs across Praat TextGrid corpora.

Project description

alignment-comparison-plots

GitHub

When two forced aligners (e.g. MFA and Wav2TextGrid) produce different .TextGrid files for the same audio, it can be hard to know where and how they disagree. This package provides ready-made Qt charts that let you visually audit alignment quality and inter-aligner agreement across an entire corpus in seconds. See the full documentation for details on the included set of plotting functions.

Full documentation →

Install

pip install alignment-comparison-plots
# or with uv
uv add alignment-comparison-plots

Requires Python ≥ 3.11.

Quickstart

import glob
from alignment_comparison_plots import plot_phoneme_counts

paths_a = glob.glob("/path/to/alignment_a/**/*.TextGrid", recursive=True)
paths_b = glob.glob("/path/to/alignment_b/**/*.TextGrid", recursive=True)

plot_phoneme_counts(paths_a=paths_a, paths_b=paths_b, label_a="Ref", label_b="Hyp")

License

MIT

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

alignment_comparison_plots-0.1.1.tar.gz (536.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

alignment_comparison_plots-0.1.1-py3-none-any.whl (12.2 kB view details)

Uploaded Python 3

File details

Details for the file alignment_comparison_plots-0.1.1.tar.gz.

File metadata

  • Download URL: alignment_comparison_plots-0.1.1.tar.gz
  • Upload date:
  • Size: 536.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.10.9 {"installer":{"name":"uv","version":"0.10.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for alignment_comparison_plots-0.1.1.tar.gz
Algorithm Hash digest
SHA256 d5aa66044fa7d9e2871f8aa14205a60d32918766cd81248098318b69e542ca40
MD5 a73c7f047b7ce52b5dc374cfdfd1ce8e
BLAKE2b-256 b94c3b8e6c262abf4d7b78b44c04d30ac058a3fe8f60685e8ebdbbd538b5f08d

See more details on using hashes here.

File details

Details for the file alignment_comparison_plots-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: alignment_comparison_plots-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 12.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.10.9 {"installer":{"name":"uv","version":"0.10.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for alignment_comparison_plots-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 6a5bde06fa72a0be04ff8e0011fa612c12c43455bcbf1303343543db39f134ec
MD5 55df091e8cc93d7784c6fc9a5900f9e4
BLAKE2b-256 519997654e96039cb9bbae5e79dd55b9f4595f6e2f20d6935a2cd00dfc0b7b62

See more details on using hashes here.

Supported by

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