Dover-lap

Latest version: v1.3.1

Safety actively analyzes 630026 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

1.2.0

What's Changed
* Fix input DER bug in hungarian.py by damian-romero in https://github.com/desh2608/dover-lap/pull/11
* remove spy-der strict version by DTDwind in https://github.com/desh2608/dover-lap/pull/13
* Changes for version 1.2 by desh2608 in https://github.com/desh2608/dover-lap/pull/14
- Remove `--tie-breaking` CLI option. For tie-breaking, use the `all` method by default. It makes more sense and has shown better performance.
- Use spyder for label mapping instead of scipy.
- Remove unused imports.
- Vectorize implementation of average voting --> should make it a little faster.
* More changes for v1.2 by desh2608 in https://github.com/desh2608/dover-lap/pull/15
- Remove `--sort-first` CLI option. Use it as default if `--label-mapping hungarian` is used. See PR for DER improvements.

Voting methods

We have restructured the code so that it should be easier to add more voting methods in future (similar to how we have several mapping methods). One motivation for this is the unresolved issue here: https://github.com/desh2608/dover-lap/issues/2.

New Contributors
* damian-romero made their first contribution in https://github.com/desh2608/dover-lap/pull/11
* DTDwind made their first contribution in https://github.com/desh2608/dover-lap/pull/13

**Full Changelog**: https://github.com/desh2608/dover-lap/compare/v1.0.0...v1.2.0

1.1.0

New features (https://github.com/desh2608/dover-lap/pull/9, https://github.com/desh2608/dover-lap/issues/6)

* New DOVER-style label mapping option now supported which uses pair-wise Hungarian. Usage example:
shell
dover-lap rttm_out rttm_in* --label-mapping hungarian --sort-first

The `--sort-first` flag optionally sorts the inputs by average DER before applying the mapping.
* Support for custom weights through `--custom-weight` option
* New tie-breaking option: `--tie-breaking [all|uniform] (default:all)` to assign ties to all speakers instead of dividing uniformly.
* Scoring is now based on [`spyder`](https://github.com/desh2608/spyder), and the md-eval.pl script has been removed.

Bug fixes

* Handling 2 input case which was earlier failing (https://github.com/desh2608/dover-lap/pull/5)
* Fixed floating-point comparison which was causing different outputs when input RTTMs were ordered differently.

Code refactor (https://github.com/desh2608/dover-lap/pull/7)

* `click` is now used for CLI arguments instead of `argparse`.
* New module for label mapping methods: `GreedyMap` and `HungarianMap`.
* Type hinting now used throughout the codebase.

1.0.0

Original code release for DOVER-Lap. Provides greedy label mapping and overlap-aware label voting.

Links

Releases

Has known vulnerabilities

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.